diff --git a/types/index.d.ts b/types/index.d.ts index a9a94de82..89fc10d66 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -9,11 +9,11 @@ import { createLogger } from "./logger"; export * from "./helpers"; export * from "./logger"; -export declare class Store { +export declare class Store { constructor(options: StoreOptions); readonly state: S; - readonly getters: any; + readonly getters: G; install(app: App, injectKey?: InjectionKey> | string): void; @@ -24,7 +24,7 @@ export declare class Store { subscribe

(fn: (mutation: P, state: S) => any, options?: SubscribeOptions): () => void; subscribeAction

(fn: SubscribeActionOptions, options?: SubscribeOptions): () => void; - watch(getter: (state: S, getters: any) => T, cb: (value: T, oldValue: T) => void, options?: WatchOptions): () => void; + watch(getter: (state: S, getters: G) => T, cb: (value: T, oldValue: T) => void, options?: WatchOptions): () => void; registerModule(path: string, module: Module, options?: ModuleOptions): void; registerModule(path: string[], module: Module, options?: ModuleOptions): void;