Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
scherlock
· 1y ago · 0 comments
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...
Comments
[–]
kentonv
1y ago
env.OAUTH_KV.get(...) is reading from Workers KV storage. It returns a promise.
[–]
ccorcos
1y ago
No. It’s possible env[?].get returns a promise though