Browse Source
Merge pull request #21951 from abpframework/issue-20239
Angular - Fixing the nullability check for proxy generation
pull/21953/head
Masum ULU
2 years 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/model.ts
|
|
|
@ -182,7 +182,7 @@ export function createRefToImportReducerCreator(params: ModelGeneratorParams) { |
|
|
|
} |
|
|
|
|
|
|
|
function isOptionalProperty(prop: PropertyDef) { |
|
|
|
return prop.typeSimple.endsWith('?') || (prop.typeSimple === 'string' && !prop.isRequired); |
|
|
|
return prop.typeSimple.endsWith('?') || !prop.isRequired; |
|
|
|
} |
|
|
|
|
|
|
|
export function parseBaseTypeWithGenericTypes(type: string): string[] { |
|
|
|
|