refactor: add cwd constant

This commit is contained in:
Innei
2022-03-27 15:11:23 +08:00
parent c8d957271f
commit b89897aafc
13 changed files with 85 additions and 45 deletions

5
test/global.d.ts vendored
View File

@@ -1,7 +1,9 @@
import { ModelType } from '@typegoose/typegoose/lib/types'
import { Consola } from 'consola'
import { Document, PaginateModel } from 'mongoose'
import 'zx-cjs/globals'
import { ModelType } from '@typegoose/typegoose/lib/types'
declare global {
export type KV<T = any> = Record<string, T>
@@ -11,6 +13,7 @@ declare global {
export const isDev: boolean
export const consola: Consola
export const cwd: string
}
export {}