From 53c606f8c841bb330bc6c1f6b4c37adb984741e3 Mon Sep 17 00:00:00 2001 From: JSQ Date: Sun, 15 Jun 2025 14:59:39 +0800 Subject: [PATCH] fix: LiteralUnion type is not work --- src/utils/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/types.ts b/src/utils/types.ts index 1bcab64..e1bae8a 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -1,3 +1,3 @@ /** https://github.com/Microsoft/TypeScript/issues/29729 */ // eslint-disable-next-line @typescript-eslint/ban-types -export type LiteralUnion = T | (U & {}); +export type LiteralUnion = T | (U & Record);