diff --git a/npm/ng-packs/packages/schematics/src/constants/system-types.ts b/npm/ng-packs/packages/schematics/src/constants/system-types.ts index 7adc16933d..75497a424a 100644 --- a/npm/ng-packs/packages/schematics/src/constants/system-types.ts +++ b/npm/ng-packs/packages/schematics/src/constants/system-types.ts @@ -10,6 +10,7 @@ export const SYSTEM_TYPES = new Map([ ['Int16', 'number'], ['Int32', 'number'], ['Int64', 'number'], + ['Net.HttpStatusCode', 'number'], ['Object', 'object'], ['Sbyte', 'number'], ['Single', 'number'], diff --git a/npm/ng-packs/packages/schematics/src/utils/type.ts b/npm/ng-packs/packages/schematics/src/utils/type.ts index 3a48fd9018..ebc669ff7f 100644 --- a/npm/ng-packs/packages/schematics/src/utils/type.ts +++ b/npm/ng-packs/packages/schematics/src/utils/type.ts @@ -16,7 +16,7 @@ export function createTypeParser(replacerFn = (t: string) => t) { .map(type => { type = normalizeTypeAnnotations(type); type = type.replace( - /System\.([0-9A-Za-z]+)/g, + /System\.([0-9A-Za-z.]+)/g, (_, match) => SYSTEM_TYPES.get(match) ?? strings.camelize(match), );