Update runtime defs

Use runtime.Store instead of wails.Store
This commit is contained in:
Lea Anthony
2020-08-30 16:07:53 +10:00
parent 485df87560
commit 0ab6a93e0c
2 changed files with 4 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ const runtime = require('@wailsapp/runtime');
// Main entry point
function start() {
var mystore = wails.Store.New('Counter');
var mystore = runtime.Store.New('Counter');
// Ensure the default app div is 100% wide/high
var app = document.getElementById('app');

View File

@@ -21,6 +21,9 @@ declare const wailsapp__runtime: {
Info(message: string): void;
Warning(message: string): void;
};
Store: {
New(name: string, optionalDefault?: any): any;
};
};