Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is it really good form in TypeScript to make all functions async, even when functions don't use await? like this, https://github.com/cloudflare/workers-oauth-provider/blob/fe...


env.OAUTH_KV.get(...) is reading from Workers KV storage. It returns a promise.


No. It’s possible env[?].get returns a promise though




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: