0
sserestyen created
Hi,
After upgrading our project from ABP 9.3.7 to ABP 10.1.1, we regenerated the Angular proxies and encountered a TypeScript compilation error.
Environment
ABP Framework: 10.1.1
Angular: 21.2.3
ABP CLI: 2.2.1
Issue
After generating the proxy models, the Angular build fails with the following error:
TS2430: Interface 'GetIdentityUsersInput' incorrectly extends interface 'ExtensiblePagedAndSortedResultRequestDto'.
Types of property 'id' are incompatible.
Type 'string | null | undefined' is not assignable to type 'string | undefined'.
Type 'null' is not assignable to type 'string | undefined'. [plugin angular-compiler]
src/app/proxy/volo/abp/identity/models.ts:39:17
39 │ export interface GetIdentityUsersInput extends ExtensiblePagedAndSortedResultRequestDto
The generated proxy interface is:
export interface GetIdentityUsersInput extends ExtensiblePagedAndSortedResultRequestDto {
filter?: string;
roleId?: string | null;
organizationUnitId?: string | null;
id?: string | null;
userName?: string;
}
However, ExtensiblePagedAndSortedResultRequestDto defines the id property as:
id?: string;
Because of this, TypeScript reports that the child interface is widening the type (string | null), which is not compatible with the base interface (string).
Thanks.