add types to models

This commit is contained in:
wancat committed 2024-02-19 18:05:01 +08:00
1 parent 5489de2432
commit 9dc0b43737
16 files changed
+179 -73

No files matched your search

+7 -4
View File
@@ -1,8 +1,11 @@
import { Schema } from 'mongoose'
import commandResponderSchema from './commandResponder.js'
import {
commandResponderSchema,
ICommandResponder,
} from './commandResponder.js'
const exceptionSchema = new Schema({})
export interface IException extends ICommandResponder {}
export const exceptionSchema = new Schema<IException>({})
exceptionSchema.add(commandResponderSchema)
export default exceptionSchema