(PC-33026)[API] feat: Better typing for YearlyAggregatedRevenueModel … #13523
Annotations
7 errors and 1 warning
Run yarn tsc -b
Type '{ [x: string]: { revenue?: undefined; expectedRevenue?: undefined; } | { revenue: { individual: number; collective?: undefined; total?: undefined; }; expectedRevenue: { individual: number; collective?: undefined; total?: undefined; }; } | { ...; } | { ...; }; }' is not assignable to type 'Record<string, AggregatedRevenue | Record<string, null>>'.
|
Run yarn tsc -b
Property 'total' does not exist on type 'CollectiveAndIndividualRevenue | CollectiveRevenue | IndividualRevenue | null'.
|
Run yarn tsc -b
Property 'individual' does not exist on type 'CollectiveAndIndividualRevenue | CollectiveRevenue | IndividualRevenue | null'.
|
Run yarn tsc -b
Property 'collective' does not exist on type 'CollectiveAndIndividualRevenue | CollectiveRevenue | IndividualRevenue | null'.
|
Run yarn tsc -b
Type 'CollectiveAndIndividualRevenue | CollectiveRevenue | IndividualRevenue | null' is not assignable to type 'CollectiveAndIndividualRevenue | CollectiveRevenue | IndividualRevenue'.
|
Run yarn tsc -b
Type 'CollectiveAndIndividualRevenue | CollectiveRevenue | IndividualRevenue | null' is not assignable to type 'CollectiveAndIndividualRevenue | CollectiveRevenue | IndividualRevenue'.
|
Run yarn tsc -b
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading