From 9b4633bf0e3e5c9058f97b466310ce84a43590c4 Mon Sep 17 00:00:00 2001 From: Innei Date: Sat, 23 Apr 2022 19:35:57 +0800 Subject: [PATCH] fix: json type make ts-jest happy --- test/global.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/global.d.ts b/test/global.d.ts index a8c9f9de..b02c95a4 100644 --- a/test/global.d.ts +++ b/test/global.d.ts @@ -15,6 +15,10 @@ declare global { export const consola: Consola export const cwd: string + + interface JSON { + safeParse: typeof JSON.parse + } } export {}