framework-do-dede 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function Auth():
|
|
1
|
+
export declare function Auth(): PropertyDecorator;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export function Auth() {
|
|
2
2
|
return function (target, propertyKey) {
|
|
3
|
-
Reflect.
|
|
3
|
+
const type = Reflect.getMetadata('design:type', target, propertyKey);
|
|
4
|
+
Reflect.defineMetadata('propertyType', type, target.constructor);
|
|
4
5
|
};
|
|
5
6
|
}
|