Closed oliver-oloughlin closed 3 months ago
TypeScript complains about the argument type when using surrealql() as a tagged function:
surrealql()
Tested in Deno and a Next.js project running on Node
Import surrealql or the alias surql and call it as a tagged function.
surrealql
surql
I expect calling surrealql as a tagged function to work without TypeScript giving errors about the input type.
v0.11.0
oliveroloughlin@hotmail.com
Fixed by #222
Describe the bug
TypeScript complains about the argument type when using![surql_error](https://github.com/surrealdb/surrealdb.js/assets/54100972/6d18a792-f309-43fd-b0ea-37891b4c751b)
surrealql()
as a tagged function:Tested in Deno and a Next.js project running on Node
Steps to reproduce
Import
surrealql
or the aliassurql
and call it as a tagged function.Expected behaviour
I expect calling
surrealql
as a tagged function to work without TypeScript giving errors about the input type.SurrealDB.js version
v0.11.0
Contact Details
oliveroloughlin@hotmail.com
Is there an existing issue for this?
Code of Conduct