feat: 类型声明

This commit is contained in:
Archer
2023-03-10 20:18:31 +08:00
parent 38d49ea05f
commit 7fb76cde0b
5 changed files with 11 additions and 13 deletions

View File

@@ -1,9 +1,6 @@
import type { Mongoose } from 'mongoose';
declare global {
namespace NodeJS {
interface Global {
mongodb: Mongoose | string;
}
}
var mongodb: Mongoose | string | null;
}
export {};