Skip to content

Commit 774fb72

Browse files
author
Matthew Green
committed
Fix two typescript errors
fix (hide) two typescript errors: node_modules/nativescript-pulltorefresh/pulltorefresh.d.ts(13,18): error TS2415: Class 'PullToRefresh' incorrectly extends base class 'ContentView'. Types of property 'on' are incompatible. Type '(event: "refresh", callback: (args: EventData) => void, thisArg?: any) => any' is not assignable to type '{ (eventNames: string | GestureTypes, callback: (data: EventData) => void, thisArg?: any): any; (...'. node_modules/nativescript-pulltorefresh/pulltorefresh.d.ts(45,9): error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
1 parent 3e86e96 commit 774fb72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pulltorefresh.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ declare module "nativescript-pulltorefresh" {
4141
/**
4242
* Raised when a refresh event occurs.
4343
*/
44+
on(event: string, callback: (args: observable.EventData) => void, thisArg?: any);
4445
on(event: "refresh", callback: (args: observable.EventData) => void, thisArg?: any);
4546
}
4647

47-
}
48+
}

0 commit comments

Comments
 (0)