diff --git a/npm/ng-packs/packages/schematics/src/utils/model.ts b/npm/ng-packs/packages/schematics/src/utils/model.ts index a8676ce639..cadede7e6b 100644 --- a/npm/ng-packs/packages/schematics/src/utils/model.ts +++ b/npm/ng-packs/packages/schematics/src/utils/model.ts @@ -21,7 +21,8 @@ export function createImportRefsToModelMapper(solution: string, types: Record { - model.interfaces.push(mapImportRefToInterface(ref)); + if (!types[ref].isEnum) model.interfaces.push(mapImportRefToInterface(ref)); + return reduceImportRefToImport(accumulatedImports, ref); }, []);