Y
Hacker News
new
|
ask
|
show
|
jobs
by
scherlock
379 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...
2 comments
kentonv
379 days ago
env.OAUTH_KV.get(...) is reading from Workers KV storage. It returns a promise.
link
ccorcos
379 days ago
No. It’s possible env[?].get returns a promise though
link