Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Commit 045ea2e

Browse files
committed
fix: expose required types for d.ts
1 parent 41a3b05 commit 045ea2e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bind-store.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import Vue, { VueConstructor, ComponentOptions } from 'vue'
22
import { mapValues } from './utils'
33

4-
interface Class<Instance> {
4+
export interface Class<Instance> {
55
new (...args: any[]): Instance
66
}
77

8-
type MutationMethod<P> = (payload: P) => void
9-
type ActionMethod<P> = (payload: P) => Promise<any>
8+
export type MutationMethod<P> = (payload: P) => void
9+
export type ActionMethod<P> = (payload: P) => Promise<any>
1010

11-
interface BoundClass<Instance extends Vue, State, Getters, Mutations, Actions> extends VueConstructor {
11+
export interface BoundClass<Instance extends Vue, State, Getters, Mutations, Actions> extends VueConstructor {
1212
state<Key extends keyof State>(map: Key[]): this & Class<{ [K in Key]: State[K] }>
1313
state<Map extends Record<string, keyof State>>(map: Map): this & Class<{ [K in keyof Map]: State[Map[K]] }>
1414
}

0 commit comments

Comments
 (0)