Hello,
When running the included code snippet
I am receiving the following error:
TS2322: Type
{ [x: string]: AggregationQuerySortDirection | undefined; }
is not assignable to type Record<string, AggregationQuerySortDirection>
string index signatures are incompatible.
Type AggregationQuerySortDirection | undefined is not assignable to type AggregationQuerySortDirection
Type undefined is not assignable to type AggregationQuerySortDirection
sortParams.ts(15, 3): The expected type comes from property preparedKeys which is declared here on type SortParamsInput
(see attachment for a better formatted representation of the error message)
Could you help me understand what is causing it and how to fix it, please?
Thank you