mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix TypeScript 2.4 errors, introduced mainly due weak types and covariant checking for callbacks (#4476)
This commit is contained in:
committed by
Alexander Vakrilov
parent
9e6498c29a
commit
8adb2fdfef
@@ -161,7 +161,7 @@ const profileMethodUnnamed = (target, key, descriptor) => {
|
||||
}
|
||||
|
||||
function profileMethodNamed(name: string): MethodDecorator {
|
||||
return (target, key, descriptor) => {
|
||||
return (target, key, descriptor: PropertyDescriptor) => {
|
||||
|
||||
// save a reference to the original method this way we keep the values currently in the
|
||||
// descriptor and don't overwrite what another decorator might have done to the descriptor.
|
||||
|
||||
Reference in New Issue
Block a user