UNPKG

@vuex-orm/core

Version:

The Vuex plugin to enable Object-Relational Mapping access to the Vuex Store.

22 lines (21 loc) 818 B
import { Record } from '../../data'; import Predicate from '../../query/contracts/Predicate'; import PersistOptions from '../../query/options/PersistOptions'; export declare type Condition = (record: Record) => boolean; export interface Create extends PersistOptions { data: Record | Record[]; } export interface Insert extends PersistOptions { data: Record | Record[]; } export declare type Update = UpdateObject | Record[]; export interface UpdateObject extends PersistOptions { data?: Record | Record[]; where?: string | number | Condition; [key: string]: any; } export interface InsertOrUpdate extends PersistOptions { data: Record | Record[]; } export declare type DeleteById = string | number | (number | string)[]; export declare type DeleteByCondition = Predicate;