From 28dfa897919e7be22d50a54c0b624c73aaba3d3d Mon Sep 17 00:00:00 2001 From: keumky2 Date: Fri, 1 Sep 2023 07:43:47 +0900 Subject: [PATCH] fix: assignInlineVars cannot accept undefined values --- packages/private/src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/private/src/types.ts b/packages/private/src/types.ts index e61803968..15756e3f4 100644 --- a/packages/private/src/types.ts +++ b/packages/private/src/types.ts @@ -11,7 +11,7 @@ type Primitive = string | boolean | number | null | undefined; export type MapLeafNodes = { [Prop in keyof Obj]: Obj[Prop] extends Primitive ? LeafType - : Obj[Prop] extends Record + : Obj[Prop] extends Record | undefined ? MapLeafNodes : never; };