epps
Version:
Enhances Pinia stores with advanced features such as persistence, encryption, and store extension. Simplifies state management and ensures data security for Vue.js and Nuxt applications.
11 lines (10 loc) • 331 B
TypeScript
import type { Item } from "../models/item";
export interface IItemStore {
setData: (data: Item) => void;
}
export interface IItemStoreState extends Item {
name?: string;
}
export declare const useItemStore: (id?: string) => import("pinia").Store<string, IItemStoreState, {}, {
setData(data: IItemStoreState): void;
}>;