diff --git a/npm/ng-packs/packages/schematics/src/utils/type.ts b/npm/ng-packs/packages/schematics/src/utils/type.ts index b74cf95313..d6e451f202 100644 --- a/npm/ng-packs/packages/schematics/src/utils/type.ts +++ b/npm/ng-packs/packages/schematics/src/utils/type.ts @@ -36,7 +36,10 @@ export function flattenUnionTypes(types: string[], type: string) { type .replace(/^{/, '') .replace(/}$/, '') + .replace(/{/, '(') + .replace(/}/, ')') .split(':') + .filter(Boolean) .forEach(t => types.push(t)); return types;