feat: handle complex union types in schematics

pull/5137/head
Arman Ozak 4 years ago
parent 2e82d0a20d
commit 283c04ca9a

@ -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;

Loading…
Cancel
Save