mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
Add missing method declaration (#1308)
* Add missing method declaration * Add eventsoff to the wrapper
This commit is contained in:
@@ -34,6 +34,16 @@ export function EventsOn(eventName, callback) {
|
||||
OnMultiple(eventName, callback, -1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unregisters the listener for the given event name
|
||||
*
|
||||
* @export
|
||||
* @param {string} eventName
|
||||
*/
|
||||
export function EventsOff(eventName) {
|
||||
return window.runtime.EventsOff(eventName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers an event listener that will be invoked once then destroyed
|
||||
*
|
||||
|
||||
@@ -17,6 +17,8 @@ export interface runtime {
|
||||
|
||||
EventsOnce(eventName: string, callback: (data?: any) => void): void;
|
||||
|
||||
EventsOff(eventName: string): void;
|
||||
|
||||
LogTrace(message: string): void;
|
||||
|
||||
LogDebug(message: string): void;
|
||||
|
||||
Reference in New Issue
Block a user