mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
add types to models
This commit is contained in:
1 parent
5489de2432
commit
9dc0b43737
16 files changed
+179
-73
No files matched your search
@@ -1,10 +1,12 @@
|
||||
import { Schema } from 'mongoose'
|
||||
|
||||
const hintSchema = new Schema({
|
||||
export interface IHint {
|
||||
hints: string[]
|
||||
}
|
||||
|
||||
export const hintSchema = new Schema({
|
||||
hints: {
|
||||
type: [String],
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
|
||||
export default hintSchema
|
||||
Reference in new issue
Block a user