Permalink
Browse files

feat(MetaData): add clear method for MetaData

  • Loading branch information...
Wesley Overdijk
Wesley Overdijk committed Apr 10, 2018
1 parent 4c93545 commit 4cdc48610df4dc3f3e2b8eef4964f4a7f3059476
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/MetaData.ts
@@ -35,6 +35,15 @@ export class MetaData {
return MetaData.metaMap.get(target);
}
/**
* Clear the MetaData for provided targets.
*
* @param {*} targets
*/
static clear(...targets: any[]): void {
targets.forEach(target => MetaData.metaMap.delete(MetaData.getConstructor(target)));
}
/**
* Get metadata for provided target (accepts instance).
*

0 comments on commit 4cdc486

Please sign in to comment.