Remove old Event methods

This commit is contained in:
Lea Anthony
2020-10-18 16:47:48 +11:00
parent c990760f22
commit 1b466090e8
2 changed files with 1 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@wails/runtime",
"version": "1.0.5",
"version": "1.0.6",
"description": "Wails V2 Javascript runtime library",
"main": "main.js",
"types": "runtime.d.ts",

View File

@@ -21,9 +21,7 @@ declare const wailsapp__runtime: {
OpenURL(url: string): Promise<any>;
};
Events: {
Acknowledge(eventName: string): void;
Emit(eventName: string, data?: any): void;
Heartbeat(eventName: string, timeInMilliseconds: number, callback: () => void): void;
On(eventName: string, callback: (data?: any) => void): void;
OnMultiple(eventName: string, callback: (data?: any) => void, maxCallbacks: number): void;
Once(eventName: string, callback: (data?: any) => void): void;