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

NameType
Idextends string = string
Sextends StateTree = StateTree
G_GettersTree<S>
A_ActionsTree

Properties

$nuxt

$nuxt: Context

Nuxt context.

Defined in

nuxt/src/module.ts:68


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

playground/src/main.ts:17

set route(value): void

Parameters

NameType
valueRouteLocationNormalizedLoaded | Ref<RouteLocationNormalizedLoaded>

Returns

void

Defined in

playground/src/main.ts:14