UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

12 lines (11 loc) 614 B
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose'; import * as factory from '../../../factory'; export type IWebAPI = Omit<factory.service.webAPI.IServiceWithChannel, 'id'>; type IDocType = IWebAPI; type IModel = Model<IDocType>; type ISchemaDefinition = SchemaDefinition<IDocType>; type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>; declare const modelName = "ReserveInterface"; declare const indexes: [d: IndexDefinition, o: IndexOptions][]; declare function createSchema(): ISchema; export { createSchema, IModel, indexes, modelName };