diff --git a/packages/builder/src/helpers/tsHelper.ts b/packages/builder/src/helpers/tsHelper.ts index 44968fa..3dad72f 100644 --- a/packages/builder/src/helpers/tsHelper.ts +++ b/packages/builder/src/helpers/tsHelper.ts @@ -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])}[]`;