-
Notifications
You must be signed in to change notification settings - Fork 725
Closed as not planned
Labels
Description
Hey,
You can't use Sort properly when using Typescript
In order for this:
sort: [ { createdDate: { order: "Desc", } } ]
To work - you must mark the entire query with "as any".
This is due to the fact that the "sort" types on the file lib/api/types.d.ts is marked as string | string[]. And though it's working for "ASC" sorting, if you need "desc" you have to make some sort of override like this.
I'm using version: 8.2.1
marvinroger, jjayaraman, awx-josh-fu, nwaughachukwuma, amake and 1 more