remove *Document intefaces from FE code

This commit is contained in:
Thomas Ruoff
2020-11-06 23:37:04 +01:00
parent 71c16a289d
commit 195da65cd9
13 changed files with 84 additions and 60 deletions

View File

@@ -1,8 +1,6 @@
import * as mongoose from 'mongoose'
export interface BookerDocument
extends mongoose.SchemaTimestampsConfig,
mongoose.Document {
export interface Booker {
name: string
email: string
street: string
@@ -10,6 +8,11 @@ export interface BookerDocument
city: string
}
export interface BookerDocument
extends Booker,
mongoose.SchemaTimestampsConfig,
mongoose.Document {}
export interface BookerModel extends mongoose.Model<BookerDocument> {}
const BookerSchema = new mongoose.Schema<BookerDocument>(