[Storage] Make methods properties in definition

This commit is contained in:
redstonekasi 2023-01-30 16:33:33 +01:00 committed by Beef
parent 25b90e22d3
commit b8e0e69fcb

10
src/def.d.ts vendored
View file

@ -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;