Browse Source
Merge pull request #21953 from abpframework/auto-merge/rel-9-1/3415
Merge branch dev with rel-9.1
pull/21956/head
maliming
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[] { |
|
|
|
|