piniaStore()
Usage
import { useRepo } from 'pinia-orm'
import User from './models/User'
// Return the complete pinia Store instance
useRepo(User).piniaStore()
Typescript Declarations
export interface DataStoreState {
data: Record<string, any>
[s: string]: any
}
function piniaStore<S extends DataStoreState = DataStoreState>(): Store
Table of Contents