From e8354eeeebea4f706a2600bae8021af1b2521acc Mon Sep 17 00:00:00 2001 From: Arman Ozak Date: Mon, 17 Aug 2020 15:04:34 +0300 Subject: [PATCH] feat: update ApiDefinition interface --- .../packages/schematics/src/models/api-definition.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/npm/ng-packs/packages/schematics/src/models/api-definition.ts b/npm/ng-packs/packages/schematics/src/models/api-definition.ts index 88542ecd08..c8612d8356 100644 --- a/npm/ng-packs/packages/schematics/src/models/api-definition.ts +++ b/npm/ng-packs/packages/schematics/src/models/api-definition.ts @@ -4,12 +4,12 @@ export interface ApiDefinition { } export interface Type { - baseType?: string; + baseType: string | null; isEnum: boolean; - enumNames?: string[]; - enumValues?: number[]; - genericArguments?: string[]; - properties?: Property[]; + enumNames: string[] | null; + enumValues: number[] | null; + genericArguments: string[] | null; + properties: Property[] | null; } export interface Property { @@ -62,7 +62,7 @@ export interface Parameter { typeSimple: string; isOptional: boolean; defaultValue: any; - constraintTypes?: string[]; + constraintTypes: string[] | null; bindingSourceId: string; descriptorName: string; }