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:
@@ -7,9 +7,7 @@ export interface AdditionalCost {
|
||||
value: number
|
||||
}
|
||||
|
||||
export interface BillDocument
|
||||
extends mongoose.SchemaTimestampsConfig,
|
||||
mongoose.Document {
|
||||
export interface Bill {
|
||||
milageStart: number
|
||||
milageEnd: number
|
||||
milage?: number
|
||||
@@ -18,6 +16,11 @@ export interface BillDocument
|
||||
additionalCosts: AdditionalCost[]
|
||||
}
|
||||
|
||||
export interface BillDocument
|
||||
extends Bill,
|
||||
mongoose.SchemaTimestampsConfig,
|
||||
mongoose.Document {}
|
||||
|
||||
export interface BillModel extends mongoose.Model<BillDocument> {}
|
||||
|
||||
const BillSchema = new mongoose.Schema<BillDocument>(
|
||||
|
||||
Reference in New Issue
Block a user