From fa7afe1517eeefe3d9e6efdf60ee7e4057742099 Mon Sep 17 00:00:00 2001 From: doktordirk Date: Thu, 7 Jul 2016 08:59:31 +0200 Subject: [PATCH] doc(metadata): added docblock about the non-compliant ts-to-es5 extends implementation --- src/metadata.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/metadata.js b/src/metadata.js index f109f8a..4706489 100644 --- a/src/metadata.js +++ b/src/metadata.js @@ -1,5 +1,7 @@ /** * Helpers for working with metadata on functions. +* +* Note for the Typescript to ES5 transpiler: Due to the non-standard compliant implementation of 'extends', these methods, when applied to derived classes, will operate on the parent class and not on the child class. This can be circumvented by either transpiling to ES2015 (ES6) or by making the targetKey parameter class-specific eg. by using target.name for the targetKey parameter. */ interface MetadataType { /**