diff --git a/src/types/generateTypesFromStruct.ts b/src/types/generateTypesFromStruct.ts index e9020a2..4804aa8 100644 --- a/src/types/generateTypesFromStruct.ts +++ b/src/types/generateTypesFromStruct.ts @@ -76,5 +76,10 @@ export const generateTypesFromStruct = ( `${keyname}: boolean${postFix ? (postFix + ";") : ";"}\n`; } + if (schemaStruct.type === "record") { + returnStr = returnStr + + `${keyname}: Record;\n`; + } + return returnStr; };