Skip to content
Перевод синхронизирован с документацией от , хэш коммита 59ec609.

Документация API / pinia / PiniaPlugin

Интерфейс: PiniaPlugin

pinia.PiniaPlugin

Плагин, который расширяет каждое из хранилищ

Callable

PiniaPlugin

PiniaPlugin(context): void | Partial<PiniaCustomProperties<string, StateTree, _GettersTree<StateTree>, _ActionsTree> & PiniaCustomStateProperties<StateTree>>

Плагин, который расширяет каждое из хранилищ. Возвращает объект для расширения хранилища или ничего.

Параметры

НазваниеТипОписание
contextPiniaPluginContext<string, StateTree, _GettersTree<StateTree>, _ActionsTree>Контекст

Возвращает

void | Partial<PiniaCustomProperties<string, StateTree, _GettersTree<StateTree>, _ActionsTree> & PiniaCustomStateProperties<StateTree>>

Released under the MIT License.

Code 20x faster with AI
Early access to AIDD Masterclass starts in few hours.
Get Early Access
12
hours
:
54
minutes
:
38
seconds
: