Interface Pinia

Every application must own its own pinia to be able to create stores

interface Pinia {
    install: ((app) => void);
    state: Ref<Record<string, StateTree>>;
    use(plugin): Pinia;
}

Properties

Methods

Properties

install: ((app) => void)

Type declaration

    • (app): void
    • Parameters

      Returns void

state: Ref<Record<string, StateTree>>

root state

Methods

  • Adds a store plugin to extend every store

    Parameters

    Returns Pinia

Generated using TypeDoc