Skip to content

Commit

Permalink
fix: assignInlineVars cannot accept undefined values
Browse files Browse the repository at this point in the history
  • Loading branch information
kyo-young committed Aug 31, 2023
1 parent 58005eb commit 28dfa89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/private/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type Primitive = string | boolean | number | null | undefined;
export type MapLeafNodes<Obj, LeafType> = {
[Prop in keyof Obj]: Obj[Prop] extends Primitive
? LeafType
: Obj[Prop] extends Record<string | number, any>
: Obj[Prop] extends Record<string | number, any> | undefined
? MapLeafNodes<Obj[Prop], LeafType>
: never;
};

0 comments on commit 28dfa89

Please sign in to comment.