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.