API 文档 • 文档
接口: PiniaPlugin()
扩展每个存储的插件。
PiniaPlugin(
context
):void
|Partial
<PiniaCustomProperties
<string
,StateTree
,_GettersTree
<StateTree
>,_ActionsTree
> &PiniaCustomStateProperties
<StateTree
>>
扩展每个存储的插件。返回一个对象来扩展存储或什么也不返回。
参数
• context: PiniaPluginContext
<string
, StateTree
, _GettersTree
<StateTree
>, _ActionsTree
>
上下文
返回值
void
| Partial
<PiniaCustomProperties
<string
, StateTree
, _GettersTree
<StateTree
>, _ActionsTree
> & PiniaCustomStateProperties
<StateTree
>>