Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add runtime check to $queryRaw("...") to throw for JS calls #8808

Closed
Tracked by #8628
matthewmueller opened this issue Aug 18, 2021 · 0 comments · Fixed by #8728
Closed
Tracked by #8628

Add runtime check to $queryRaw("...") to throw for JS calls #8808

matthewmueller opened this issue Aug 18, 2021 · 0 comments · Fixed by #8728
Assignees
Labels
team/client Issue for team Client.

Comments

@matthewmueller
Copy link
Contributor

matthewmueller commented Aug 18, 2021

Right now there's a type error for $queryRaw("...") in Typescript, but nothing stopping people from using the function form in Javascript. We should throw a runtime error instructing people to use either the tagged template or $queryRawUnsafe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team/client Issue for team Client.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants