Browse Source
Handle optional enum types in signature mapper
pull/23688/head
sumeyye
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
npm/ng-packs/packages/schematics/src/utils/service.ts
|
|
|
@ -124,7 +124,7 @@ export function createActionToSignatureMapper() { |
|
|
|
} |
|
|
|
|
|
|
|
let type = adaptType(p.typeSimple); |
|
|
|
if (p.typeSimple === 'enum' || p.typeSimple === '[enum]') { |
|
|
|
if (p.typeSimple === 'enum' || p.typeSimple === '[enum]' || p.typeSimple === 'enum?' || p.typeSimple === '[enum]?') { |
|
|
|
type = adaptType(p.type); |
|
|
|
} |
|
|
|
|
|
|
|
|