fence icon indicating copy to clipboard operation
fence copied to clipboard

fixed Guard.allows method return type: Promise<boolean> | boolean

Open nikzanda opened this issue 1 year ago • 0 comments

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

nikzanda avatar Sep 05 '23 15:09 nikzanda