Wrong response type for referenced table data when using the .single()
modifier
#512
Open
2 tasks done
Labels
bug
Something isn't working
Bug report
Describe the bug
Referenced tables (docs) are not typed correctly when used with
.single()
. The types don't match with the actual response.May possibly actually be an issue with the underlying PostREST library, can't say for sure.confirmedTo Reproduce
Expected behavior
NOTE: To reduce the scope of where the issue originates from, I am not passing any types to the client instance. thus
any
is presentActual behavior
System information
Additional context
Using this inside a Vue 3 (Composition API) application with Vite and TypeScript. The client is initialized the recommended way, as in the demos on GitHub that the official docs link to.
The text was updated successfully, but these errors were encountered: