tinspector
Advanced tools
Comparing version 2.0.0-2 to 2.0.0-3
@@ -85,2 +85,3 @@ import "reflect-metadata"; | ||
export declare function decorate(data: any, targetTypes?: DecoratorTargetType[]): (...args: any[]) => void; | ||
export declare function mergeDecorator(...fn: Function[]): (...args: any[]) => void; | ||
export declare function getDecorators(target: any): Decorator[]; | ||
@@ -87,0 +88,0 @@ /** |
@@ -133,2 +133,8 @@ "use strict"; | ||
exports.decorate = decorate; | ||
function mergeDecorator(...fn) { | ||
return (...args) => { | ||
fn.forEach(x => x(...args)); | ||
}; | ||
} | ||
exports.mergeDecorator = mergeDecorator; | ||
function getDecorators(target) { | ||
@@ -135,0 +141,0 @@ return Reflect.getMetadata(exports.DECORATOR_KEY, target) || []; |
{ | ||
"name": "tinspector", | ||
"version": "2.0.0-2", | ||
"version": "2.0.0-3", | ||
"description": "TypeScript type inspector", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -221,3 +221,2 @@ # tinspector | ||
## Ignore Member From Metadata Generated | ||
@@ -227,2 +226,6 @@ | ||
## Reflect Generic Type | ||
## Reflect Generic Type | ||
## Custom Decorator | ||
## Merge Decorators |
24998
446
229