Replies: 1 comment
-
Did you figured it out ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Has anyone been able to get type generics to work with the js client ?
Here's a simplified version of what I'm trying do to :
The idea is then to call
getThingsByStatus<MyTableType>('myTable', 'myStatus')
passing a type (MyTableType
) which corresponds to the shape of the table being queried.However the
.in()
method — but also all other filters — raises an error in typescript :Argument of type 'string[]' is not assignable to parameter of type 'T[keyof T][]'
Thanks for any help,
Beta Was this translation helpful? Give feedback.
All reactions