Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
types: add "isPersistent" method to MouseEvent
Browse files Browse the repository at this point in the history
and "constructor.release" for returning an event to its event pool.
  • Loading branch information
aleclarson committed Oct 16, 2019
1 parent 1df2ca3 commit 221b429
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion @types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,12 @@ export interface GestureResponderHandlers {
onMoveShouldSetResponderCapture?: (event: GestureResponderEvent) => boolean;
}

export interface MouseEvent extends NativeSyntheticEvent<NativeMouseEvent> {}
export interface MouseEvent extends NativeSyntheticEvent<NativeMouseEvent> {
isPersistent(): boolean
constructor: Function & {
release(event: MouseEvent): void
}
}

export interface NativeMouseEvent {
/**
Expand Down

0 comments on commit 221b429

Please sign in to comment.