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) {
|
||||
if (descriptor) {
|
||||
var originalMethod = descriptor.value;
|
||||
|
Reference in New Issue
Block a user