保利威文档中心

帮助中心

Function: defineStore()

更新时间:2025-10-10 12:02:04

Polyv Wx Live Player Component


Polyv Wx Live Player Component / modules/super-miniprogram/store/define-store / defineStore

Function: defineStore()

defineStore<Id, S, SS, G, A>(id, options): StoreDefinition<Id, S, SS, G, A>

Type Parameters

Id

Id extends string = ""

S

S extends StateTree = { }

SS

SS extends StateTree = { }

G

G extends GetterOptions = { }

A

A extends ActionOptions = { }

Parameters

id

Id

options

DefineStoreOptions<Id, S, SS, G, A>

Returns

StoreDefinition<Id, S, SS, G, A>

联系客服,在线咨询