Skip to content

Commit

Permalink
fix(webview, typings): webview off typings (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
mszekiel authored Mar 9, 2024
1 parent 31e24ea commit 5b4d9d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/webview/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ interface Alt {
* @param eventName Name of the event.
* @param listener Listener that should be removed.
*/
off<E extends keyof import("@altv/shared").Events.CustomWebViewToClientEvent>(eventName: E, listener: import("@altv/shared").Events.CustomWebViewToClientEvent[E]): void;
off<E extends string>(eventName: Exclude<E, keyof import("@altv/shared").Events.CustomWebViewToClientEvent>, listener: (...args: unknown[]) => void): void;
off<E extends keyof import("@altv/shared").Events.CustomClientToWebViewEvent>(eventName: E, listener: import("@altv/shared").Events.CustomClientToWebViewEvent[E]): void;
off<E extends string>(eventName: Exclude<E, keyof import("@altv/shared").Events.CustomClientToWebViewEvent>, listener: (...args: unknown[]) => void): void;

/**
* Subscribes to client event handler with specified listener.
Expand Down

0 comments on commit 5b4d9d6

Please sign in to comment.