Skip to content

Commit

Permalink
Fix optional map value
Browse files Browse the repository at this point in the history
  • Loading branch information
YanagiEiichi committed Jul 4, 2024
1 parent 60bf3e0 commit 3257c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/builder/src/helpers/tsHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const t2s = (type: Type): string => {
} else {
keyType = 'PropertyKey';
}
return `Record<${keyType}, ${t2s(second)}>`;
return `Record<${keyType}, ${t2s(second)} | undefined>`;
}
if (isJavaList(name)) {
return `${t2s(parameters[0])}[]`;
Expand Down

0 comments on commit 3257c6c

Please sign in to comment.