API Documentation / pinia / PiniaCustomProperties
Interface: PiniaCustomProperties<Id, S, G, A>
pinia.PiniaCustomProperties
Interface to be extended by the user when they add properties through plugins.
Type parameters
Name | Type |
---|---|
Id | extends string = string |
S | extends StateTree = StateTree |
G | _GettersTree <S > |
A | _ActionsTree |
Properties
$nuxt
• $nuxt: Context
Nuxt context.
Defined in
double
• double: number
Defined in
pinia/tests/storePlugins.spec.ts:14
globalA
• globalA: string
Defined in
pinia/tests/storePlugins.spec.ts:11
globalB
• globalB: string
Defined in
pinia/tests/storePlugins.spec.ts:12
hasApp
• hasApp: boolean
Defined in
pinia/tests/storePlugins.spec.ts:9
idFromPlugin
• idFromPlugin: Id
Defined in
pinia/tests/storePlugins.spec.ts:10
pluginN
• pluginN: number
Defined in
pinia/tests/storePlugins.spec.ts:7
shared
• shared: number
Defined in
pinia/tests/storePlugins.spec.ts:13
uid
• uid: number
Defined in
pinia/tests/storePlugins.spec.ts:8
Accessors
route
• get
route(): RouteLocationNormalized
Returns
RouteLocationNormalized
Defined in
• set
route(value
): void
Parameters
Name | Type |
---|---|
value | RouteLocationNormalizedLoaded | Ref <RouteLocationNormalizedLoaded > |
Returns
void