mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
chore: Fix TS transpile error with 2.9 (#5906)
This commit is contained in:

committed by
Svetoslav

parent
9308bab172
commit
8cc427c9b5
@ -206,7 +206,7 @@ export function Deprecated(target: Object, key?: string | symbol, descriptor?: a
|
|||||||
var originalMethod = descriptor.value;
|
var originalMethod = descriptor.value;
|
||||||
|
|
||||||
descriptor.value = function (...args: any[]) {
|
descriptor.value = function (...args: any[]) {
|
||||||
console.log(`${key} is deprecated`);
|
console.log(`${key.toString()} is deprecated`);
|
||||||
|
|
||||||
return originalMethod.apply(this, args);
|
return originalMethod.apply(this, args);
|
||||||
}
|
}
|
||||||
@ -225,7 +225,7 @@ export function Experimental(target: Object, key?: string | symbol, descriptor?:
|
|||||||
var originalMethod = descriptor.value;
|
var originalMethod = descriptor.value;
|
||||||
|
|
||||||
descriptor.value = function (...args: any[]) {
|
descriptor.value = function (...args: any[]) {
|
||||||
console.log(`${key} is experimental`);
|
console.log(`${key.toString()} is experimental`);
|
||||||
|
|
||||||
return originalMethod.apply(this, args);
|
return originalMethod.apply(this, args);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user