mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix: simplify EventData typings, drop NotifyData
This commit is contained in:
4
packages/core/ui/gestures/index.d.ts
vendored
4
packages/core/ui/gestures/index.d.ts
vendored
@@ -140,7 +140,7 @@ export interface GestureEventData extends EventData {
|
||||
/**
|
||||
* Gets the view which originates the gesture.
|
||||
*/
|
||||
view: Partial<View>;
|
||||
view: View;
|
||||
/**
|
||||
* Gets the underlying native iOS specific [UIGestureRecognizer](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIGestureRecognizer_Class/).
|
||||
*/
|
||||
@@ -287,7 +287,7 @@ export class GesturesObserver {
|
||||
* @param callback - A function that will be executed when a gesture is received.
|
||||
* @param context - default this argument for the callbacks.
|
||||
*/
|
||||
constructor(target: Partial<View>, callback: (args: GestureEventData) => void, context: any);
|
||||
constructor(target: View, callback: (args: GestureEventData) => void, context: any);
|
||||
|
||||
/**
|
||||
* Registers a gesture observer to a view and gesture.
|
||||
|
||||
Reference in New Issue
Block a user