Post

Might be a noob question, but could this potentially have been avoided by using TS and annotating the return type of isOwner as boolean?

0 reposts1 like

We are using TypeScript. We could also explicitly set the return type, but the problem is that the types don't exist during runtime. They are being checked through the LSP during development and before building. Our function was being changed to an async one after type checking.