Upgrading pinia 0.5 to 2
Unknown0.5.4 → 2.3.1
Fetching 97 releases from GitHub…11 / 97
UnknownUpgrade verdict
DepDelta is still reading the notes for 86 of 97 releases, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
Adds @vue/devtools-api ^6.6.3, vue-demi ^0.14.10.
Installs 2 packages in all (was 0).
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- removed:
interface NodeJS.Global - removed:
interface Window - removed:
namespace NodeJS - removed:
property NodeJS.Global.__VUE_DEVTOOLS_GLOBAL_HOOK__?: DevtoolHook - removed:
property Window.__VUE_DEVTOOLS_GLOBAL_HOOK__?: DevtoolHook
- removed:
interface Context - removed:
property Context.$pinia: Pinia - removed:
property Context.pinia: Pinia
- removed:
interface PiniaCustomProperties - removed:
property PiniaCustomProperties.$nuxt: Context
- added:
interface ComponentCustomProperties - added:
interface GlobalComponents - added:
property ComponentCustomProperties.$pinia: Pinia - added:
property ComponentCustomProperties._pStores?: Record<string, StoreGeneric>
- changed:
interface ComponentOptions<V extends Vue> → interface ComponentOptions<V>
- added:
call PiniaPlugin(context: PiniaPluginContext): Partial<PiniaCustomProperties & PiniaCustomStateProperties> | void - added:
call StoreDefinition(pinia?: Pinia | null | undefined, hot?: StoreGeneric): Store<Id, S, G, A> - added:
const PiniaVuePlugin: Plugin_2 - added:
const getActivePinia: () => Pinia | undefined - added:
const mapGetters: typeof mapState - added:
const setActivePinia: _SetActivePinia - added:
declare module 'vue' - added:
declare module 'vue/types/options' - added:
declare module 'vue/types/vue' - added:
enum MutationType - added:
function acceptHMRUpdate<Id extends string = string, S extends StateTree = StateTree, G extends _GettersTree<S> = _GettersTree<S>, A = _ActionsTree>(initialUseStore: StoreDefinition<Id, S, G, A>, hot: any): (newModule: any) => any - added:
function createPinia(): Pinia - added:
function defineStore<Id extends string, S extends StateTree = {}, G extends _GettersTree<S> = {}, A = {}>(id: Id, options: Omit<DefineStoreOptions<Id, S, G, A>, 'id'>): StoreDefinition<Id, S, G, A> - added:
function defineStore<Id extends string, S extends StateTree = {}, G extends _GettersTree<S> = {}, A = {}>(options: DefineStoreOptions<Id, S, G, A>): StoreDefinition<Id, S, G, A> - added:
function defineStore<Id extends string, SS>(id: Id, storeSetup: (helpers: SetupStoreHelpers) => SS, options?: DefineSetupStoreOptions<Id, _ExtractStateFromSetupStore<SS>, _ExtractGettersFromSetupStore<SS>, _ExtractActionsFromSetupStore<SS>>): StoreDefinition<Id, _ExtractStateFromSetupStore<SS>, _ExtractGettersFromSetupStore<SS>, _ExtractActionsFromSetupStore<SS>> - added:
function disposePinia(pinia: Pinia): void - added:
function mapActions<Id extends string, S extends StateTree, G extends _GettersTree<S>, A, KeyMapper extends Record<string, keyof A>>(useStore: StoreDefinition<Id, S, G, A>, keyMapper: KeyMapper): _MapActionsObjectReturn<A, KeyMapper> - added:
function mapActions<Id extends string, S extends StateTree, G extends _GettersTree<S>, A>(useStore: StoreDefinition<Id, S, G, A>, keys: Array<keyof A>): _MapActionsReturn<A> - added:
function mapState<Id extends string, S extends StateTree, G extends _GettersTree<S> | { [key: string]: ComputedRef }, A, KeyMapper extends Record<string, keyof S | keyof G | ((store: Store<Id, S, G, A>) => any)>>(useStore: StoreDefinition<Id, S, G, A>, keyMapper: KeyMapper): _MapStateObjectReturn<Id, S, G, A, KeyMapper> - added:
function mapState<Id extends string, S extends StateTree, G extends _GettersTree<S> | { [key: string]: ComputedRef }, A, Keys extends keyof S | keyof G>(useStore: StoreDefinition<Id, S, G, A>, keys: readonly Keys[]): _MapStateReturn<S, G, Keys> - added:
function mapStores<Stores extends any[]>(...stores: [...Stores]): _Spread<Stores> - added:
function mapWritableState<Id extends string, S extends StateTree, G, A, KeyMapper extends Record<string, _MapWritableStateKeys<S, G>>>(useStore: StoreDefinition<Id, S, G, A>, keyMapper: KeyMapper): _MapWritableStateObjectReturn<S, G, KeyMapper> - added:
function mapWritableState<Id extends string, S extends StateTree, G, A, Keys extends _MapWritableStateKeys<S, G>>(useStore: StoreDefinition<Id, S, G, A>, keys: readonly Keys[]): Pick<_MapWritableStateReturn<S, G, Keys>, Keys> - added:
function setMapStoreSuffix(suffix: MapStoresCustomization extends Record<'suffix', infer Suffix> ? Suffix : string): void - added:
function shouldHydrate(obj: any): boolean - added:
function skipHydrate<T = any>(obj: T): T - added:
function storeToRefs<SS extends StoreGeneric>(store: SS): StoreToRefs<SS> - added:
interface DefineSetupStoreOptions<Id extends string, S extends StateTree, G, A> extends DefineStoreOptionsBase<S, Store<Id, S, G, A>> - added:
interface DefineStoreOptions<Id extends string, S extends StateTree, G, A> extends DefineStoreOptionsBase<S, Store<Id, S, G, A>> - added:
interface DefineStoreOptionsBase<S extends StateTree, Store> - added:
interface DefineStoreOptionsInPlugin<Id extends string, S extends StateTree, G, A> extends Omit<DefineStoreOptions<Id, S, G, A>, 'id' | 'actions'> - added:
interface MapStoresCustomization - added:
interface Pinia - added:
interface PiniaCustomProperties<Id extends string = string, S extends StateTree = StateTree, G = _GettersTree<S>, A = _ActionsTree> - added:
interface PiniaCustomStateProperties<S extends StateTree = StateTree> - added:
interface PiniaPlugin - added:
interface PiniaPluginContext<Id extends string = string, S extends StateTree = StateTree, G = _GettersTree<S>, A = _ActionsTree> - added:
interface SetupStoreDefinition<Id extends string, SS> extends StoreDefinition<Id, _ExtractStateFromSetupStore<SS>, _ExtractGettersFromSetupStore<SS>, _ExtractActionsFromSetupStore<SS>> - added:
interface StoreDefinition<Id extends string = string, S extends StateTree = StateTree, G = _GettersTree<S>, A = _ActionsTree> - added:
interface StoreProperties<Id extends string> - added:
interface SubscriptionCallbackMutationDirect extends _SubscriptionCallbackMutationBase - added:
interface SubscriptionCallbackMutationPatchFunction extends _SubscriptionCallbackMutationBase - added:
interface SubscriptionCallbackMutationPatchObject<S> extends _SubscriptionCallbackMutationBase - added:
interface _StoreOnActionListenerContext<Store, ActionName extends string, A> - added:
interface _StoreWithState<Id extends string, S extends StateTree, G, A> extends StoreProperties<Id> - added:
interface _SubscriptionCallbackMutationBase - added:
member MutationType.direct = 'direct' - added:
member MutationType.patchFunction = 'patch function' - added:
member MutationType.patchObject = 'patch object' - added:
method DefineStoreOptions.hydrate?(storeState: UnwrapRef<S>, initialState: UnwrapRef<S>): void - added:
method Pinia.use(plugin: PiniaPlugin): Pinia - added:
method _StoreWithState.$dispose(): void - added:
method _StoreWithState.$onAction(callback: StoreOnActionListener<Id, S, G, A>, detached?: boolean): () => void - added:
method _StoreWithState.$patch(partialState: _DeepPartial<UnwrapRef<S>>): void - added:
method _StoreWithState.$patch<F extends (state: UnwrapRef<S>) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void - added:
method _StoreWithState.$reset(): void - added:
method _StoreWithState.$subscribe(callback: SubscriptionCallback<S>, options?: { detached?: boolean } & WatchOptions): () => void - added:
property DefineSetupStoreOptions.actions?: A - added:
property DefineStoreOptions.actions?: A & ThisType<A & UnwrapRef<S> & _StoreWithState<Id, S, G, A> & _StoreWithGetters<G> & PiniaCustomProperties> - added:
property DefineStoreOptions.getters?: G & ThisType<UnwrapRef<S> & _StoreWithGetters<G> & PiniaCustomProperties> & _GettersTree<S> - added:
property DefineStoreOptions.id: Id - added:
property DefineStoreOptions.state?: () => S - added:
property DefineStoreOptionsInPlugin.actions: A - added:
property Pinia.install: (app: App) => void - added:
property Pinia.state: Ref<Record<string, StateTree>> - added:
property PiniaPluginContext.app: App - added:
property PiniaPluginContext.options: DefineStoreOptionsInPlugin<Id, S, G, A> - added:
property PiniaPluginContext.pinia: Pinia - added:
property PiniaPluginContext.store: Store<Id, S, G, A> - added:
property StoreDefinition.$id: Id - added:
property StoreProperties.$id: Id - added:
property StoreProperties._customProperties: Set<string> - added:
property SubscriptionCallbackMutationDirect.events: DebuggerEvent - added:
property SubscriptionCallbackMutationDirect.type: MutationType.direct - added:
property SubscriptionCallbackMutationPatchFunction.events: DebuggerEvent[] - added:
property SubscriptionCallbackMutationPatchFunction.type: MutationType.patchFunction - added:
property SubscriptionCallbackMutationPatchObject.events: DebuggerEvent[] - added:
property SubscriptionCallbackMutationPatchObject.payload: _DeepPartial<UnwrapRef<S>> - added:
property SubscriptionCallbackMutationPatchObject.type: MutationType.patchObject - added:
property _StoreOnActionListenerContext.after: (callback: A extends Record<ActionName, _Method> ? (resolvedReturn: _Awaited<ReturnType<A[ActionName]>>) => void : () => void) => void - added:
property _StoreOnActionListenerContext.args: A extends Record<ActionName, _Method> ? Parameters<A[ActionName]> : unknown[] - added:
property _StoreOnActionListenerContext.name: ActionName - added:
property _StoreOnActionListenerContext.onError: (callback: (error: unknown) => void) => void - added:
property _StoreOnActionListenerContext.store: Store - added:
property _StoreWithState.$state: UnwrapRef<S> & PiniaCustomStateProperties<S> - added:
property _SubscriptionCallbackMutationBase.events?: DebuggerEvent[] | DebuggerEvent - added:
property _SubscriptionCallbackMutationBase.storeId: string - added:
property _SubscriptionCallbackMutationBase.type: MutationType - added:
type PiniaStorePlugin = PiniaPlugin - added:
type StateTree = Record<PropertyKey, any> - added:
type Store<Id extends string = string, S extends StateTree = {}, G = {}, A = {}> = _StoreWithState<Id, S, G, A> & UnwrapRef<S> & _StoreWithGetters<G> & (_ActionsTree extends A ? {} : A) & PiniaCustomProperties<Id, S, G, A> & PiniaCustomStateP… - added:
type StoreActions<SS> = SS extends Store<string, StateTree, _GettersTree<StateTree>, infer A> ? A : _ExtractActionsFromSetupStore<SS> - added:
type StoreGeneric = Store<string, StateTree, _GettersTree<StateTree>, _ActionsTree> - added:
type StoreGetters<SS> = SS extends Store<string, StateTree, infer G, _ActionsTree> ? _StoreWithGetters<G> : _ExtractGettersFromSetupStore<SS> - added:
type StoreOnActionListener<Id extends string, S extends StateTree, G, A> = (context: StoreOnActionListenerContext<Id, S, G, {} extends A ? _ActionsTree : A>) => void - added:
type StoreOnActionListenerContext<Id extends string, S extends StateTree, G, A> = _ActionsTree extends A ? _StoreOnActionListenerContext<StoreGeneric, string, _ActionsTree> : { [Name in keyof A]: Name extends string ? _StoreOnActionListenerC… - added:
type StoreState<SS> = SS extends Store<string, infer S, _GettersTree<StateTree>, _ActionsTree> ? UnwrapRef<S> : _ExtractStateFromSetupStore<SS> - added:
type SubscriptionCallback<S> = (mutation: SubscriptionCallbackMutation<S>, state: UnwrapRef<S>) => void - added:
type SubscriptionCallbackMutation<S> = SubscriptionCallbackMutationDirect | SubscriptionCallbackMutationPatchObject<S> | SubscriptionCallbackMutationPatchFunction - added:
type _ActionsTree = Record<string, _Method> - added:
type _Awaited<T> = T extends null | undefined ? T : T extends object & { then(onfulfilled: infer F): any } ? F extends (value: infer V, ...args: any) => any ? _Awaited<V> : never… - added:
type _DeepPartial<T> = { [K in keyof T]?: _DeepPartial<T[K]> } - added:
type _ExtractActionsFromSetupStore<SS> = SS extends undefined | void ? {} : Pick<SS, _ExtractActionsFromSetupStore_Keys<SS>> - added:
type _ExtractActionsFromSetupStore_Keys<SS> = keyof { [K in keyof SS as SS[K] extends _Method ? K : never]: any } - added:
type _ExtractGettersFromSetupStore<SS> = SS extends undefined | void ? {} : Pick<SS, _ExtractGettersFromSetupStore_Keys<SS>> - added:
type _ExtractGettersFromSetupStore_Keys<SS> = keyof { [K in keyof SS as SS[K] extends ComputedRef ? K : never]: any } - added:
type _ExtractStateFromSetupStore<SS> = SS extends undefined | void ? {} : Pick<SS, _ExtractStateFromSetupStore_Keys<SS>> - added:
type _ExtractStateFromSetupStore_Keys<SS> = keyof { [K in keyof SS as SS[K] extends _Method | ComputedRef ? never : K]: any } - added:
type _GettersTree<S extends StateTree> = Record<string, ((state: UnwrapRef<S> & UnwrapRef<PiniaCustomStateProperties<S>>) => any) | (() => any)> - added:
type _MapActionsObjectReturn<A, T extends Record<string, keyof A>> = { [key in keyof T]: A[T[key]] } - added:
type _MapActionsReturn<A> = { [key in keyof A]: A[key] } - added:
type _MapStateObjectReturn<Id extends string, S extends StateTree, G extends _GettersTree<S> | { [key: string]: ComputedRef }, A, T extends Record<string, keyof S | keyof G | ((store: Store<Id, S, G, A>) => any)> = {}> = { [key in keyof T]: () => T[key] extends (store: any) => infer R ? R : T[key] extends keyof Store<Id, S, G, A> ? Store<Id, S, G, A>[T[key]] : never } - added:
type _MapStateReturn<S extends StateTree, G extends _GettersTree<S> | { [key: string]: ComputedRef }, Keys extends keyof S | keyof G = keyof S | keyof G> = { [key in Keys]: key extends keyof Store<string, S, G, {}> ? () => Store<string, S, G, {}>[key] : never } - added:
type _MapWritableStateObjectReturn<S extends StateTree, G, KeyMapper extends Record<string, _MapWritableStateKeys<S, G>>> = { [key in keyof KeyMapper]: { get: () => UnwrapRef<(S & G)[KeyMapper[key]]>; set: (value: UnwrapRef<(S & G)[KeyMapper[key]]>) => any } } - added:
type _MapWritableStateReturn<S extends StateTree, G, Keys extends _MapWritableStateKeys<S, G>> = { [key in Keys]: { get: () => UnwrapRef<(S & G)[key]>; set: (value: UnwrapRef<(S & G)[key]>) => any } } - added:
type _Method = (...args: any[]) => any - added:
type _Spread<A extends readonly any[]> = A extends [infer L, ...infer R] ? _StoreObject<L> & _Spread<R> : unknown - added:
type _StoreObject<S> = S extends StoreDefinition<infer Ids, infer State, infer Getters, infer Actions> ? { [Id in `${Ids}${MapStoresCustomization extends Record<'suffix', infer Suffi… - added:
type _StoreWithActions<A> = { [k in keyof A]: A[k] extends (...args: infer P) => infer R ? (...args: P) => R : never } - added:
type _StoreWithGetters<G> = _StoreWithGetters_Readonly<G> & _StoreWithGetters_Writable<G> - added:
type _UnwrapAll<SS> = { [K in keyof SS]: UnwrapRef<SS[K]> }
- removed:
const createStore: typeof defineStore
- removed:
declare global - removed:
function useStoreDevtools(store: StoreWithState<string, StateTree>, stateDescriptor: { get: () => StateTree; set: (newValue: StateTree) => void }): void
- removed:
export { ActionsTree } from './types' - removed:
export { DefineStoreOptions } from './types' - removed:
export { GenericStore } from './types' - removed:
export { GettersTree } from './types' - removed:
export { MapStoresCustomization } from './mapHelpers' - removed:
export { MutationType } from './types' - removed:
export { Pinia } from './rootStore' - removed:
export { PiniaCustomProperties } from './types' - removed:
export { PiniaCustomStateProperties } from './types' - removed:
export { PiniaPlugin } from './plugin' - removed:
export { PiniaPluginContext } from './rootStore' - removed:
export { PiniaStorePlugin } from './rootStore' - removed:
export { StateTree } from './types' - removed:
export { Store } from './types' - removed:
export { StoreDefinition } from './types' - removed:
export { StoreOnActionListener } from './types' - removed:
export { StoreOnActionListenerContext } from './types' - removed:
export { StoreWithActions } from './types' - removed:
export { StoreWithGetters } from './types' - removed:
export { StoreWithState } from './types' - removed:
export { SubscriptionCallback } from './types' - removed:
export { SubscriptionCallbackMutation } from './types' - removed:
export { SubscriptionCallbackMutationDirect } from './types' - removed:
export { SubscriptionCallbackMutationPatchFunction } from './types' - removed:
export { SubscriptionCallbackMutationPatchObject } from './types' - removed:
export { _MapActionsObjectReturn } from './mapHelpers' - removed:
export { _MapActionsReturn } from './mapHelpers' - removed:
export { _MapStateObjectReturn } from './mapHelpers' - removed:
export { _MapStateReturn } from './mapHelpers' - removed:
export { _MapWritableStateObjectReturn } from './mapHelpers' - removed:
export { _MapWritableStateReturn } from './mapHelpers' - removed:
export { _Method } from './types' - removed:
export { _Spread } from './mapHelpers' - removed:
export { _StoreObject } from './mapHelpers' - removed:
export { _SubscriptionCallbackMutationBase } from './types' - removed:
export { createPinia } from './rootStore' - removed:
export { createStore } from './deprecated' - removed:
export { defineStore } from './store' - removed:
export { mapActions } from './mapHelpers' - removed:
export { mapGetters } from './mapHelpers' - removed:
export { mapState } from './mapHelpers' - removed:
export { mapStores } from './mapHelpers' - removed:
export { mapWritableState } from './mapHelpers' - removed:
export { setActivePinia } from './rootStore' - removed:
export { setMapStoreSuffix } from './mapHelpers'
- removed:
const mapGetters: typeof mapState - removed:
function mapActions<Id extends string, S extends StateTree, G extends GettersTree<S>, A, KeyMapper extends Record<string, keyof A>>(useStore: StoreDefinition<Id, S, G, A>, keyMapper: KeyMapper): _MapActionsObjectReturn<A, KeyMapper> - removed:
function mapActions<Id extends string, S extends StateTree, G extends GettersTree<S>, A>(useStore: StoreDefinition<Id, S, G, A>, keys: Array<keyof A>): _MapActionsReturn<A> - removed:
function mapState<Id extends string, S extends StateTree, G extends GettersTree<S>, A, KeyMapper extends Record<string, keyof S | keyof G | ((store: Store<Id, S, G, A>) => any)>>(useStore: StoreDefinition<Id, S, G, A>, keyMapper: KeyMapper): _MapStateObjectReturn<Id, S, G, A, KeyMapper> - removed:
function mapState<Id extends string, S extends StateTree, G extends GettersTree<S>, A>(useStore: StoreDefinition<Id, S, G, A>, keys: Array<keyof S | keyof G>): _MapStateReturn<S, G> - removed:
function mapStores<Stores extends any[]>(...stores: [...Stores]): _Spread<Stores> - removed:
function mapWritableState<Id extends string, S extends StateTree, G extends GettersTree<S>, A, KeyMapper extends Record<string, keyof S>>(useStore: StoreDefinition<Id, S, G, A>, keyMapper: KeyMapper): _MapWritableStateObjectReturn<S, KeyMapper> - removed:
function mapWritableState<Id extends string, S extends StateTree, G extends GettersTree<S>, A>(useStore: StoreDefinition<Id, S, G, A>, keys: Array<keyof S>): _MapWritableStateReturn<S> - removed:
function setMapStoreSuffix(suffix: MapStoresCustomization extends Record<'suffix', string> ? MapStoresCustomization['suffix'] : string): void - removed:
interface MapStoresCustomization - removed:
let mapStoreSuffix: string - removed:
type _MapActionsObjectReturn<A, T extends Record<string, keyof A>> = { [key in keyof T]: A[T[key]] } - removed:
type _MapActionsReturn<A> = { [key in keyof A]: A[key] } - removed:
type _MapStateObjectReturn<Id extends string, S extends StateTree, G extends GettersTree<S>, A, T extends Record<string, keyof S | keyof G | ((store: Store<Id, S, G, A>) => any)>> = { [key in keyof T]: () => T[key] extends (store: Store) => infer R ? R : T[key] extends keyof Store<Id, S, G, A> ? Store<Id, S, G, A>[T[key]] : never } - removed:
type _MapStateReturn<S extends StateTree, G extends GettersTree<S>> = { [key in keyof S | keyof G]: () => key extends keyof Store<string, S, G, {}> ? Store<string, S, G, {}>[key] : never } - removed:
type _MapWritableStateObjectReturn<S extends StateTree, T extends Record<string, keyof S>> = { [key in keyof T]: { get: () => S[T[key]]; set: (value: S[T[key]]) => any } } - removed:
type _MapWritableStateReturn<S extends StateTree> = { [key in keyof S]: { get: () => S[key]; set: (value: S[key]) => any } } - removed:
type _Spread<A extends readonly any[]> = A extends [infer L, ...infer R] ? _StoreObject<L> & _Spread<R> : unknown - removed:
type _StoreObject<S> = S extends StoreDefinition<infer Ids, infer State, infer Getters, infer Actions> ? { [Id in `${Ids}${MapStoresCustomization extends Record<'suffix', string> ? M…
- removed:
const PiniaPlugin: PluginFunction<void>
- removed:
call PiniaStorePlugin(context: PiniaPluginContext): Partial<PiniaCustomProperties & PiniaCustomStateProperties> | void - removed:
const getActivePinia: () => Pinia - removed:
const piniaSymbol: InjectionKey<Pinia> - removed:
const setActivePinia: (pinia: Pinia | undefined) => Pinia | undefined - removed:
const storesMap: WeakMap<Pinia, Map<string, [StoreWithState<string, StateTree, GettersTree<StateTree>, ActionsTree>, StateDescriptor<StateTree>, InjectionKey<Store<string, Stat… - removed:
declare module 'vue/types/options' - removed:
declare module 'vue/types/vue' - removed:
function createPinia(): Pinia - removed:
interface Pinia - removed:
interface PiniaPluginContext<Id extends string = string, S extends StateTree = StateTree, G extends GettersTree<S> = GettersTree<S>, A = ActionsTree> - removed:
interface PiniaStorePlugin - removed:
let activePinia: Pinia | undefined - removed:
method Pinia.use(plugin: PiniaStorePlugin): Pinia - removed:
property Pinia._p: PiniaStorePlugin[] - removed:
property Pinia.state: Ref<Record<string, StateTree>> - removed:
property PiniaPluginContext.options: DefineStoreOptions<Id, S, G, A> - removed:
property PiniaPluginContext.pinia: Pinia - removed:
property PiniaPluginContext.store: Store<Id, S, G, A>
- removed:
function defineStore<Id extends string, S extends StateTree, G extends GettersTree<S>, A>(options: DefineStoreOptions<Id, S, G, A>): StoreDefinition<Id, S, G, A>
- removed:
call StoreDefinition(pinia?: Pinia | null | undefined): Store<Id, S, G, A> - removed:
enum MutationType - removed:
function isPlainObject(o: any): o is StateTree - removed:
interface DefineStoreOptions<Id extends string, S extends StateTree, G extends GettersTree<S>, A> - removed:
interface PiniaCustomProperties<Id extends string = string, S extends StateTree = StateTree, G extends GettersTree<S> = GettersTree<S>, A = ActionsTree> - removed:
interface PiniaCustomStateProperties<S extends StateTree = StateTree> - removed:
interface StateDescriptor<S extends StateTree> - removed:
interface StoreDefinition<Id extends string, S extends StateTree, G extends GettersTree<S>, A> - removed:
interface StoreWithState<Id extends string, S extends StateTree, G extends GettersTree<StateTree> = GettersTree<S>, A = ActionsTree> - removed:
interface SubscriptionCallbackMutationDirect extends _SubscriptionCallbackMutationBase - removed:
interface SubscriptionCallbackMutationPatchFunction extends _SubscriptionCallbackMutationBase - removed:
interface SubscriptionCallbackMutationPatchObject<S> extends _SubscriptionCallbackMutationBase - removed:
interface _SubscriptionCallbackMutationBase - removed:
member MutationType.direct = 'direct' - removed:
member MutationType.patchFunction = 'patch function' - removed:
member MutationType.patchObject = 'patch object' - removed:
method StateDescriptor.get(): S - removed:
method StateDescriptor.set(newValue: S): void - removed:
method StoreWithState.$onAction(callback: StoreOnActionListener<Id, S, G, A>): () => void - removed:
method StoreWithState.$patch(partialState: DeepPartial<UnwrapRef<S>>): void - removed:
method StoreWithState.$patch<F extends (state: UnwrapRef<S>) => void>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void - removed:
method StoreWithState.$reset(): void - removed:
method StoreWithState.$subscribe(callback: SubscriptionCallback<S>): () => void - removed:
property DefineStoreOptions.actions?: A & ThisType<A & UnwrapRef<StateTree extends S ? {} : S> & StoreWithState<Id, S, G, A> & StoreWithGetters<GettersTree<S> extends G ? {} : G> & PiniaCustomProperties> - removed:
property DefineStoreOptions.getters?: G & ThisType<UnwrapRef<StateTree extends S ? {} : S> & StoreWithGetters<G> & PiniaCustomProperties> - removed:
property DefineStoreOptions.id: Id - removed:
property DefineStoreOptions.state?: () => S - removed:
property StoreDefinition.$id: Id - removed:
property StoreWithState.$id: Id - removed:
property StoreWithState.$state: UnwrapRef<StateTree extends S ? {} : S> & PiniaCustomStateProperties<S> - removed:
property StoreWithState._as: StoreOnActionListener[] - removed:
property StoreWithState._p: Pinia - removed:
property SubscriptionCallbackMutationDirect.type: MutationType.direct - removed:
property SubscriptionCallbackMutationPatchFunction.type: MutationType.patchFunction - removed:
property SubscriptionCallbackMutationPatchObject.payload: DeepPartial<S> - removed:
property SubscriptionCallbackMutationPatchObject.type: MutationType.patchObject - removed:
property _SubscriptionCallbackMutationBase.storeId: string - removed:
property _SubscriptionCallbackMutationBase.storeName: string - removed:
property _SubscriptionCallbackMutationBase.type: MutationType - removed:
type ActionsTree = Record<string, _Method> - removed:
type DeepPartial<T> = { [K in keyof T]?: DeepPartial<T[K]> } - removed:
type GenericStore<Id extends string = string, S extends StateTree = any, G extends GettersTree<S> = GettersTree<S>, A = ActionsTree> = StoreWithState<Id, S, G, A> & UnwrapRef<S> & StoreWithGetters<G> & StoreWithActions<A> & PiniaCustomProperties<Id, S, G, A> & PiniaCustomStateProperties<S> - removed:
type GettersTree<S extends StateTree> = Record<string, ((state: UnwrapRef<(StateTree extends S ? {} : S) & PiniaCustomStateProperties<S>>) => any) | (() => any)> - removed:
type StateTree = Record<string | number | symbol, any> - removed:
type Store<Id extends string = string, S extends StateTree = StateTree, G extends GettersTree<S> = GettersTree<S>, A = ActionsTree> = StoreWithState<Id, StateTree extends S ? {} : S, G, A> & (StateTree extends S ? {} : UnwrapRef<S>) & (GettersTree<S> extends G ? {} : StoreWithGetters<G>) & (A… - removed:
type StoreOnActionListener<Id extends string = string, S extends StateTree = StateTree, G extends GettersTree<S> = GettersTree<S>, A = ActionsTree> = (context: StoreOnActionListenerContext<Id, S, G, A>) => void - removed:
type StoreOnActionListenerContext<Id extends string, S extends StateTree, G extends GettersTree<S>, A> = { [Name in keyof A]: { name: Name; store: Store<Id, S, G, A>; args: A[Name] extends _Method ? Parameters<A[Name]> : unknown[]; after: (callback: A[Name] extend… - removed:
type StoreWithActions<A> = { [k in keyof A]: A[k] extends (...args: infer P) => infer R ? (...args: P) => R : never } - removed:
type StoreWithGetters<G> = { readonly [k in keyof G]: G[k] extends (...args: any[]) => infer R ? R : never } - removed:
type SubscriptionCallback<S> = (mutation: SubscriptionCallbackMutation<S>, state: UnwrapRef<S>) => void - removed:
type SubscriptionCallbackMutation<S> = SubscriptionCallbackMutationDirect | SubscriptionCallbackMutationPatchObject<S> | SubscriptionCallbackMutationPatchFunction - removed:
type UnwrapPromise<T> = T extends Promise<infer V> ? V : T - removed:
type _Method = (...args: any[]) => any
- removed:
const IS_CLIENT: boolean - removed:
const assign: { <T, U>(target: T, source: U): T & U; <T_1, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V; <T_2, U_2, V_1, W>(target: T_2, source1: U_2, sourc…
- removed:
declare module '@nuxt/types' - removed:
declare module 'pinia'