From 3013554cef7638cc5c8a0d0d51dc07361bebd89a Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sun, 20 Aug 2023 07:57:05 +0000 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=86=8C=ED=95=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/util/jsonify.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/util/jsonify.ts b/server/util/jsonify.ts index 10cb5d5..3ec8b4c 100644 --- a/server/util/jsonify.ts +++ b/server/util/jsonify.ts @@ -1,5 +1,4 @@ import { every, isString } from "lodash-es"; -import { symbol } from "zod"; type JsonifiableLite = string | number | boolean | bigint | null | undefined | @@ -31,7 +30,7 @@ export type Jsonified = T extends Set ? Jsonified[] : T extends object ? ( T extends { jsonify(): infer V extends Jsonifiable } ? Jsonified : //HACK: jsonify()는 Jsonified여야 함 - {[key in keyof T]: Jsonified}): //FIXME: keyof T에 symbol을 받을 수 없어야 함 + {[key in keyof T]: Jsonified}): T extends unknown ? unknown : never;