Browse Source

Merge pull request #21922 from abpframework/issue-21910

Angular - Fixing proxy generation problem for the enum type
pull/21925/head
Masum ULU 2 years ago
committed by GitHub
parent
commit
3650c59b63
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      npm/ng-packs/packages/schematics/src/utils/model.ts

2
npm/ng-packs/packages/schematics/src/utils/model.ts

@ -148,7 +148,7 @@ export function createImportRefToInterfaceReducerCreator(params: ModelGeneratorP
typeDef.properties?.forEach(prop => {
let name = prop.jsonName || camel(prop.name);
name = shouldQuote(name) ? `'${name}'` : name;
const type = simplifyType(prop.typeSimple);
const type = simplifyType(prop.type);
const refs = parseType(prop.type).reduce(
(acc: string[], r) => acc.concat(parseGenerics(r).toGenerics()),
[],

Loading…
Cancel
Save