UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

19 lines (18 loc) 759 B
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose'; /** * The place is open if the opens property is specified, and closed otherwise. */ interface IOpeningHoursSpecification { typeOf: 'OpeningHoursSpecification'; opens?: string; validFrom: Date; validThrough: Date; } type IDocType = IOpeningHoursSpecification; type IModel = Model<IDocType>; type ISchemaDefinition = SchemaDefinition<IDocType>; type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>; declare const modelName = "Service.AvailableHour"; declare const indexes: [d: IndexDefinition, o: IndexOptions][]; declare function createSchema(): ISchema; export { createSchema, IDocType, IModel, indexes, modelName };