From 5be8544504d250cf6227f368b21024f984a52786 Mon Sep 17 00:00:00 2001 From: Arman Ozak Date: Fri, 21 Aug 2020 07:45:25 +0300 Subject: [PATCH] fix: cut out generics from base type for better parsing --- npm/ng-packs/packages/schematics/src/utils/model.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/npm/ng-packs/packages/schematics/src/utils/model.ts b/npm/ng-packs/packages/schematics/src/utils/model.ts index 3c688fc7eb..22e2b55347 100644 --- a/npm/ng-packs/packages/schematics/src/utils/model.ts +++ b/npm/ng-packs/packages/schematics/src/utils/model.ts @@ -61,9 +61,7 @@ export function createImportRefsToModelReducer(params: ModelGeneratorParams) { const { baseType } = types[_interface.ref]; if (baseType && parseNamespace(solution, baseType) !== model.namespace) toBeImported.push({ - type: parseGenerics(baseType) - .toGenerics() - .join(''), + type: baseType.split('<')[0], isEnum: false, });