API 文档 / pinia / PiniaCustomProperties

接口:PiniaCustomProperties<Id, S, G, A>

pinia.PiniaCustomProperties

当用户通过插件添加属性时,接口可被扩展。

类型参数

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

属性

$nuxt

$nuxt: Context

Nuxt 上下文

定义于

nuxt/src/module.ts:68


double

double: number

定义于

pinia/tests/storePlugins.spec.ts:14


globalA

globalA: string

定义于

pinia/tests/storePlugins.spec.ts:11


globalB

globalB: string

定义于

pinia/tests/storePlugins.spec.ts:12


hasApp

hasApp: boolean

定义于

pinia/tests/storePlugins.spec.ts:9


idFromPlugin

idFromPlugin: Id

定义于

pinia/tests/storePlugins.spec.ts:10


pluginN

pluginN: number

定义于

pinia/tests/storePlugins.spec.ts:7


shared

shared: number

定义于

pinia/tests/storePlugins.spec.ts:13


uid

uid: number

定义于

pinia/tests/storePlugins.spec.ts:8

Accessors

route

get route(): RouteLocationNormalized

返回值

RouteLocationNormalized

定义于

playground/src/main.ts:17

set route(value): void

参数

NameType
valueRouteLocationNormalizedLoaded | Ref<RouteLocationNormalizedLoaded>

返回值

void

定义于

playground/src/main.ts:14