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,10 @@
|
||||
import mongoose from 'mongoose'
|
||||
|
||||
export { default as User } from './user.js'
|
||||
export { default as Quest } from './quest.js'
|
||||
export { default as Session } from './session.js'
|
||||
export { default as Command } from './command.js'
|
||||
export { default as UserProfile } from './userProfile.js'
|
||||
export { User } from './user.js'
|
||||
export { Quest, IQuest } from './quest.js'
|
||||
export { Session } from './session.js'
|
||||
export { Command, ICommand } from './command.js'
|
||||
export { UserProfile } from './userProfile.js'
|
||||
|
||||
export default async function connectDB(uri: string) {
|
||||
const db = await mongoose.connect(uri)
|
||||
|
||||
Reference in new issue
Block a user