From 797b5e3e8d23819cbd108ac6963eeb5344f418a5 Mon Sep 17 00:00:00 2001 From: Francisco Date: Thu, 28 Mar 2024 16:22:49 -0300 Subject: [PATCH] Update src/core.ts Co-authored-by: Hadrien Croubois --- src/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.ts b/src/core.ts index d127a72..ce0b256 100644 --- a/src/core.ts +++ b/src/core.ts @@ -421,7 +421,7 @@ function isExternalizable(fnDef: FunctionDefinition, deref: ASTDereferencer): bo function isTypeExternalizable(typeName: TypeName | null | undefined, deref: ASTDereferencer): boolean { if (typeName == undefined) { return true; - } if (typeName.nodeType === 'UserDefinedTypeName') { + } else if (typeName.nodeType === 'UserDefinedTypeName') { const typeDef = derefUserDefinedTypeName(deref, typeName); if (typeDef.nodeType !== 'StructDefinition') { return true;