surrealdb / surrealdb.js

SurrealDB SDK for JavaScript
https://surrealdb.com
Apache License 2.0
272 stars 45 forks source link

Bug: Argument of type 'TemplateStringsArray' is not assignable to parameter of type 'string[]' #221

Closed oliver-oloughlin closed 3 months ago

oliver-oloughlin commented 3 months ago

Describe the bug

TypeScript complains about the argument type when using surrealql() as a tagged function: surql_error

Tested in Deno and a Next.js project running on Node

Steps to reproduce

Import surrealql or the alias surql 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

kearfy commented 3 months ago

Fixed by #222