[Storage] Make methods properties in definition
This commit is contained in:
parent
25b90e22d3
commit
b8e0e69fcb
1 changed files with 5 additions and 5 deletions
10
src/def.d.ts
vendored
10
src/def.d.ts
vendored
|
@ -262,11 +262,11 @@ interface VendettaObject {
|
||||||
registerCommand: (command: ApplicationCommand) => () => void;
|
registerCommand: (command: ApplicationCommand) => () => void;
|
||||||
};
|
};
|
||||||
storage: {
|
storage: {
|
||||||
createProxy<T>(target: T): { proxy: T, emitter: Emitter };
|
createProxy: <T>(target: T) => { proxy: T, emitter: Emitter };
|
||||||
useProxy<T>(storage: T): T;
|
useProxy: <T>(storage: T) => T;
|
||||||
createStorage<T>(storeName: string): Promise<Awaited<T>>;
|
createStorage: <T>(storeName: string) => Promise<Awaited<T>>;
|
||||||
wrapSync<T extends Promise<any>>(store: T): Awaited<T>;
|
wrapSync: <T extends Promise<any>>(store: T) => Awaited<T>;
|
||||||
awaitSyncWrapper(store: any): Promise<void>;
|
awaitSyncWrapper: (store: any) => Promise<void>;
|
||||||
};
|
};
|
||||||
settings: Settings;
|
settings: Settings;
|
||||||
logger: Logger;
|
logger: Logger;
|
||||||
|
|
Loading…
Reference in a new issue