In our Application.Contracts, we have the following class: public class MyEntityCustomPagedResultDto : PagedResultDto<MyEntityDto>
After running abp generate-proxy -t ng, the angular app fails to compile with this error: error TS2440: Import declaration conflicts with local declaration of 'MyEntityDto'
The resulting models.ts file includes both an import for MyEntityDto and and interface definition for MyEntityDto: import type { MyEntityDto } from './models';
Also, a slightly different error results if the custom class is instead defined like this: public class MyEntityCustomPagedResultDto<T> : PagedResultDto<T>
After running abp generate-proxy -t ng, the angular app fails to compile with this error: error TS2305: Module '"../../../models"' has no exported member 'T'.
The resulting models.ts file includes the following import: import type { T } from '../../../models';
After running abp generate-proxy -t ng, DTO properties that have a data type of DateOnly become "any" data type in the resulting TypeScript interfaces. In addition, it creates a system/models.ts as this:
export interface any extends any {
minValue: any;
maxValue: any;
year: number;
month: number;
day: number;
dayOfWeek: any;
dayOfYear: number;
dayNumber: number;
}
This results in the following error when trying to run the angular app:
Error: src/app/proxy/system/models.ts:2:18 - error TS2310: Type 'any' recursively references itself as a base type.
2 export interface any extends any { ~~~
Error: src/app/proxy/system/models.ts:2:18 - error TS2427: Interface name cannot be 'any'.
2 export interface any extends any {
DateOnly properties should be treated as strings in TypeScript since the .NET JSON Serializer natively supports writing DateOnly to/from string in the "yyyy-mm-dd" format.