From 5b4d9d6b8873e9e336069d5514c452ddbb70ec72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz?= <12242002+mszekiel@users.noreply.github.com> Date: Sat, 9 Mar 2024 02:23:25 +0100 Subject: [PATCH] fix(webview, typings): webview off typings (#200) --- types/webview/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/webview/index.d.ts b/types/webview/index.d.ts index 0624c291c..75075f094 100644 --- a/types/webview/index.d.ts +++ b/types/webview/index.d.ts @@ -16,8 +16,8 @@ interface Alt { * @param eventName Name of the event. * @param listener Listener that should be removed. */ - off(eventName: E, listener: import("@altv/shared").Events.CustomWebViewToClientEvent[E]): void; - off(eventName: Exclude, listener: (...args: unknown[]) => void): void; + off(eventName: E, listener: import("@altv/shared").Events.CustomClientToWebViewEvent[E]): void; + off(eventName: Exclude, listener: (...args: unknown[]) => void): void; /** * Subscribes to client event handler with specified listener.