Files
core/test/global.d.ts
2022-04-23 19:35:57 +08:00

25 lines
488 B
TypeScript

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>
// @ts-ignore
export type MongooseModel<T> = ModelType<T> & PaginateModel<T & Document>
export const isDev: boolean
export const consola: Consola
export const cwd: string
interface JSON {
safeParse: typeof JSON.parse
}
}
export {}