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

Typescript only returns type any, how to return string? #3955

Open
MatheusAnciloto opened this issue Jul 28, 2020 · 1 comment
Open

Typescript only returns type any, how to return string? #3955

MatheusAnciloto opened this issue Jul 28, 2020 · 1 comment

Comments

@MatheusAnciloto
Copy link

I looked up the documentation, but I can't find a way to get a string return from a query, using typescript.

I need to use the function bcrypt.compare() and to do that I must use a string in the password parameter.

@MatheusAnciloto
Copy link
Author

I used .first() and solved my problem!!

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

No branches or pull requests

1 participant