Skip to content
该翻译已同步到了 的版本,其对应的 commit hash 是 c67a5c9

API 文档 / pinia / DefineStoreOptionsBase

接口:DefineStoreOptionsBase<S, Store>

pinia.DefineStoreOptionsBase

传递给 defineStore() 的选项,在 option store 和 setup store 之间是通用的。 如果你想为这两种 store 添加自定义的选项, 请扩展这个接口。

类型参数

NameType
Sextends StateTree
StoreStore

层次结构

Released under the MIT License.