Comment by scherlock
6 days ago
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...
6 days ago
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