Skip to content

Commit 8fcda0d

Browse files
Annihilbrowniefed
authored andcommitted
add/removeEventListener handler param type fix (#257)
1 parent 837bfab commit 8fcda0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ export function setBottomPadding(padding: number): Promise<void>;
155155
* @param {string} type
156156
* @param {() => void} handler
157157
*/
158-
export function addEventListener(type: string, handler: () => void): void;
158+
export function addEventListener(type: string, handler: (event?: any) => void): void;
159159

160160
/**
161161
* removeEventListener
162162
* @param {string} type
163163
* @param {() => void} handler
164164
*/
165-
export function removeEventListener(type: string, handler: () => void): void;
165+
export function removeEventListener(type: string, handler: (event?: any) => void): void;
166166

167167
/**
168168
* To enable iOS push notifications, simply call the following anywhere in your code:

0 commit comments

Comments
 (0)