fix: generate interface for base types too

pull/5137/head
Arman Ozak 4 years ago
parent 7423b1cd23
commit 2e82d0a20d

@ -133,7 +133,13 @@ export function createImportRefToInterfaceReducerCreator(params: ModelGeneratorP
prop.refs.forEach(type => !types[type]?.isEnum && refs.push(type));
return refs;
}, [])
.concat(base || [])
.concat(
base
? parseGenerics(typeDef.baseType!)
.toGenerics()
.join('')
: [],
)
.reduce<Interface[]>(reduceRefsToInterfaces, interfaces);
}
}

Loading…
Cancel
Save