Files
core/test/global.d.ts
Innei 2513f88f44 refactor: move to vitest
Signed-off-by: Innei <tukon479@gmail.com>
2022-09-12 15:31:48 +08:00

26 lines
512 B
TypeScript

import { Consola } from 'consola'
import { Document, PaginateModel } from 'mongoose'
import 'vitest/globals'
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 {}