mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Add the global __params helper. Used by decorated constructor parameters.
This commit is contained in:
@ -127,6 +127,12 @@ if (typeof global.__metadata !== "function") {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof global.__param !== "function") {
|
||||||
|
global.__param = (global && global.__param) || function (paramIndex, decorator) {
|
||||||
|
return function (target, key) { decorator(target, key, paramIndex); }
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
export function Deprecated(target: Object, key?: string | symbol, descriptor?: any) {
|
export function Deprecated(target: Object, key?: string | symbol, descriptor?: any) {
|
||||||
if (descriptor) {
|
if (descriptor) {
|
||||||
var originalMethod = descriptor.value;
|
var originalMethod = descriptor.value;
|
||||||
@ -163,4 +169,4 @@ export function Experimental(target: Object, key?: string | symbol, descriptor?:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
global.Experimental = Experimental;
|
global.Experimental = Experimental;
|
||||||
|
Reference in New Issue
Block a user