mirror of
https://github.com/taigrr/wails.git
synced 2026-04-15 19:30:49 -07:00
Support dynamic loglevel
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@wails/runtime",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"description": "Wails V2 Javascript runtime library",
|
||||
"main": "main.js",
|
||||
"types": "runtime.d.ts",
|
||||
|
||||
11
v2/internal/runtime/js/runtime/runtime.d.ts
vendored
11
v2/internal/runtime/js/runtime/runtime.d.ts
vendored
@@ -1,5 +1,12 @@
|
||||
export = wailsapp__runtime;
|
||||
|
||||
interface Store {
|
||||
get(): any;
|
||||
set(value: any): void;
|
||||
subscribe(callback: (newvalue: any) => void): void;
|
||||
update(callback: (currentvalue: any) => any): void;
|
||||
}
|
||||
|
||||
declare const wailsapp__runtime: {
|
||||
Browser: {
|
||||
OpenFile(filename: string): Promise<any>;
|
||||
@@ -24,6 +31,10 @@ declare const wailsapp__runtime: {
|
||||
System: {
|
||||
DarkModeEnabled(): Promise<boolean>;
|
||||
OnThemeChange(callback: (darkModeEnabled: boolean) => void): void;
|
||||
LogLevel(): Store;
|
||||
};
|
||||
Store: {
|
||||
New(name: string, defaultValue?: any): Store;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -36,4 +36,5 @@ function DarkModeEnabled() {
|
||||
module.exports = {
|
||||
OnThemeChange: OnThemeChange,
|
||||
DarkModeEnabled: DarkModeEnabled,
|
||||
LogLevel: window.wails.System.LogLevel,
|
||||
};
|
||||
Reference in New Issue
Block a user