mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
parent
2430916c10
commit
25c687164a
3 changed files with 174 additions and 0 deletions
|
|
@ -396,6 +396,19 @@ export interface PluginAPI {
|
|||
isWindowFocused(): boolean;
|
||||
|
||||
onWindowFocusChange?(handler: (isFocused: boolean) => void): void;
|
||||
|
||||
// simple counters
|
||||
setCounter(id: string, value: number): Promise<void>;
|
||||
|
||||
getCounter(id: string): Promise<number | null>;
|
||||
|
||||
incrementCounter(id: string, incrementBy?: number): Promise<number>;
|
||||
|
||||
decrementCounter(id: string, decrementBy?: number): Promise<number>;
|
||||
|
||||
deleteCounter(id: string): Promise<void>;
|
||||
|
||||
getAllCounters(): Promise<{ [id: string]: number }>;
|
||||
}
|
||||
|
||||
export interface PluginInstance {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue