@vuex-orm/core
Version:
The Vuex plugin to enable Object-Relational Mapping access to the Vuex Store.
84 lines (83 loc) • 3.9 kB
TypeScript
import './types/vuex';
import './polyfills';
import install, { Install } from './store/install';
import use, { Use, PluginComponents } from './plugins/use';
import Container from './container/Container';
import Database from './database/Database';
import Model from './model/Model';
import Fields from './model/contracts/Fields';
import Attribute from './attributes/Attribute';
import Type from './attributes/types/Type';
import Attr from './attributes/types/Attr';
import String from './attributes/types/String';
import Number from './attributes/types/Number';
import Boolean from './attributes/types/Boolean';
import Uid from './attributes/types/Uid';
import Relation from './attributes/relations/Relation';
import HasOne from './attributes/relations/HasOne';
import BelongsTo from './attributes/relations/BelongsTo';
import HasMany from './attributes/relations/HasMany';
import HasManyBy from './attributes/relations/HasManyBy';
import BelongsToMany from './attributes/relations/BelongsToMany';
import HasManyThrough from './attributes/relations/HasManyThrough';
import MorphTo from './attributes/relations/MorphTo';
import MorphOne from './attributes/relations/MorphOne';
import MorphMany from './attributes/relations/MorphMany';
import MorphToMany from './attributes/relations/MorphToMany';
import MorphedByMany from './attributes/relations/MorphedByMany';
import Getters from './modules/Getters';
import Actions from './modules/Actions';
import RootGetters from './modules/RootGetters';
import RootActions from './modules/RootActions';
import RootMutations from './modules/RootMutations';
import GettersContract from './modules/contracts/Getters';
import ActionsContract from './modules/contracts/Actions';
import RootGettersContract from './modules/contracts/RootGetters';
import RootActionsContract from './modules/contracts/RootActions';
import RootMutationsContract from './modules/contracts/RootMutations';
import Query from './query/Query';
import Record from './data/Record';
import Records from './data/Records';
import NormalizedData from './data/NormalizedData';
import Instance from './data/Instance';
import Instances from './data/Instances';
import InstanceOf from './data/InstanceOf';
import Entities from './data/Entities';
import Item from './data/Item';
import Collection from './data/Collection';
import Collections from './data/Collections';
export interface VuexORM {
install: Install;
use: Use;
Container: typeof Container;
Database: typeof Database;
Model: typeof Model;
Attribute: typeof Attribute;
Type: typeof Type;
Attr: typeof Attr;
String: typeof String;
Number: typeof Number;
Boolean: typeof Boolean;
Uid: typeof Uid;
Relation: typeof Relation;
HasOne: typeof HasOne;
BelongsTo: typeof BelongsTo;
HasMany: typeof HasMany;
HasManyBy: typeof HasManyBy;
BelongsToMany: typeof BelongsToMany;
HasManyThrough: typeof HasManyThrough;
MorphTo: typeof MorphTo;
MorphOne: typeof MorphOne;
MorphMany: typeof MorphMany;
MorphToMany: typeof MorphToMany;
MorphedByMany: typeof MorphedByMany;
Getters: GettersContract;
Actions: ActionsContract;
RootGetters: RootGettersContract;
RootActions: RootActionsContract;
RootMutations: RootMutationsContract;
Query: typeof Query;
}
export { install, use, PluginComponents, Container, Database, Model, Fields, Attribute, Type, Attr, String, Number, Boolean, Uid, Relation, HasOne, BelongsTo, HasMany, HasManyBy, BelongsToMany, HasManyThrough, MorphTo, MorphOne, MorphMany, MorphToMany, MorphedByMany, Getters, Actions, RootGetters, RootActions, RootMutations, Query, Record, Records, NormalizedData, Instance, Instances, InstanceOf, Entities, Item, Collection, Collections };
declare const _default: VuexORM;
export default _default;