mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 15:07:13 +01:00
remove *Document intefaces from FE code
This commit is contained in:
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user