Skip to content

wevu / index / defineStore

函数: defineStore()

调用签名

defineStore<T>(id, setup): () => T & object

定义于: packages/wevu/src/store/define.ts:11

类型参数

T

T extends Record<string, any>

参数

id

string

setup

SetupDefinition<T>

返回

(): T & object

返回

T & object

调用签名

defineStore<S, G, A>(id, options): () => S & StoreGetters<G> & A & object

定义于: packages/wevu/src/store/define.ts:17

类型参数

S

S extends Record<string, any>

G

G extends Record<string, any>

A

A extends Record<string, any>

参数

id

string

options

DefineStoreOptions<S, G, A>

返回

(): S & StoreGetters<G> & A & object

返回

S & StoreGetters<G> & A & object

Released under the MIT License.