Skip to content

Conversation

@nikzanda
Copy link

@nikzanda nikzanda commented Sep 5, 2023

Guard.allows should be able to return Promise when the function that checks user permissions is asynchronous. Doing so will remove the Visual Studio Code message ‘await has no effect on the type of this expression’.
Screenshot 2023-09-05 at 17 13 43

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

Successfully merging this pull request may close these issues.

1 participant