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

Commit 221b429

Browse files
committed
types: add "isPersistent" method to MouseEvent
and "constructor.release" for returning an event to its event pool.
1 parent 1df2ca3 commit 221b429

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

@types/index.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,12 @@ export interface GestureResponderHandlers {
17561756
onMoveShouldSetResponderCapture?: (event: GestureResponderEvent) => boolean;
17571757
}
17581758

1759-
export interface MouseEvent extends NativeSyntheticEvent<NativeMouseEvent> {}
1759+
export interface MouseEvent extends NativeSyntheticEvent<NativeMouseEvent> {
1760+
isPersistent(): boolean
1761+
constructor: Function & {
1762+
release(event: MouseEvent): void
1763+
}
1764+
}
17601765

17611766
export interface NativeMouseEvent {
17621767
/**

0 commit comments

Comments
 (0)