frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Automatically add missing "async/await" keywords to your TypeScript code

https://github.com/stanNthe5/typescript-autoawait
7•theThree•1y ago

Comments

bastawhiz•1y ago
Is this a problem that people actually have?
xeromal•1y ago
Fun side project man!
primitivesuave•1y ago
I took a peek at the implementation - I think this only works for a case where the typing explicitly contains the string "Promise". For example, I don't think it would work if I use `SomeInterface["some_promise_key"]` or might incorrectly add an async if I use `Awaited<Promise<...>>`.

I think what you're trying to build might be best served by Typescript's VFS - https://www.npmjs.com/package/@typescript/vfs. You can load the local files into an in-memory type system, and quickly extract async/await hints that might be more useful for a typical TS developer. I think there's a lot of really interesting static analysis you could do to improve async/await safety, as it certainly leads to issues from time to time.

joshstrange•1y ago
I do not want to be mean but I think you'd be much better served with ESLint rules to yell at you when you don't await when you should or do when you shouldn't.

This should _not_ be an automatic operation since it can change behavior in ways that will be unclear to the developer (completely undoing any gain from them being added automatically).

theThree•1y ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•1y ago
I created a ticket, using comments is not necessary because there is already the `void` syntax for when you don't want to wait:

https://github.com/stanNthe5/typescript-autoawait/issues/1

nextweek2•1y ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Which countries sell inflation-linked savings bonds?

https://www.nytimes.com/2026/11/16/us/international-student-college-enrollment-declines.html
1•paulpauper•3m ago•0 comments

Philosophy, Celan, Teresa, Joyce, Theory, Ghost, Morel, Hagwon, Fiction

https://www.commonreader.co.uk/p/philosophy-celan-teresa-joyce-theory
1•paulpauper•3m ago•0 comments

Megastudies improve the impact of applied behavioural science

https://www.nature.com/articles/s41586-021-04128-4
1•paulpauper•4m ago•0 comments

ASI as a Black Box

https://borretti.me/article/asi-as-a-black-box
1•speckx•4m ago•0 comments

A new implementation for LLMs through Nvidia GPUs natively on Apple Silicon

https://github.com/hawking-systems/runtime
1•joshuahicks•6m ago•1 comments

Style Is Consistent Constraint

https://stephango.com/style
1•tosh•7m ago•0 comments

Laptop Can Hear You Without a Microphone. Proof

https://twitter.com/whyvanamali/status/2122276417031585879
1•mrkn1•7m ago•0 comments

Show HN: Own your AI at full speed

https://www.rightnowai.co/
1•OsamaJaber•8m ago•0 comments

Challenging Consensus, Scientist Says Photos Show Epstein Was Killed

https://www.nytimes.com/2026/11/16/us/jeffrey-epstein-autopsy-michael-freeman.html
1•ParentiSoundSys•9m ago•0 comments

A Generation Revolts

https://www.noemamag.com/a-generation-revolts/
1•littlexsparkee•9m ago•0 comments

Huang's Ouster Fuels Doubts About Nvidia's Support for Neoclouds

https://www.bloomberg.com/news/articles/2026-11-16/huang-s-ouster-fuels-doubts-about-nvidia-s-sup...
1•petethomas•10m ago•0 comments

Baptize.Link – clean tracking cruft out of links with paste or url append

https://baptize.link/
1•RobLach•10m ago•1 comments

Perplexity Monitor API

https://www.perplexity.ai/hub/blog/introducing-perplexitys-monitor-api
1•denysvitali•10m ago•0 comments

Sex in Public

https://lmnt.me/blog/sex-in-public.html
1•speckx•12m ago•0 comments

What Happens to Work After a Timeout?

https://octri.dev/blog/what-happens-to-work-after-a-timeout
1•khalidkhair•12m ago•0 comments

Paul Christiano on the Dwarkesh Podcast [video]

https://www.dwarkesh.com/p/paul-christiano-2
2•keito•13m ago•0 comments

Show HN: Sample – Music Player

https://sample-music-player.netlify.app/
1•sidd_sarkar•13m ago•0 comments

Apple adds 'face unlock' to the iPhone Duo, but it's not Face ID

https://techcrunch.com/2026/11/16/apple-adds-face-unlock-to-the-iphone-duo-but-its-not-face-id/
1•lavendermon•15m ago•0 comments

The Rise and Fall of Heathkit – Part 1: Early Days

https://www.eejournal.com/article/the-rise-and-fall-of-heathkit-part-1-early-days/
1•CharlesW•16m ago•0 comments

Show HN: Self-Hosted Contact Forms for Your Web App in Go

https://github.com/VictorioBerra/miform
1•Lord_Zero•16m ago•0 comments

GenAI Is Erasing the Mid-Level Engineer Promo Signal

https://swaranga.dev/posts/who-are-we-actually-promoting/
1•swaranga•18m ago•0 comments

Sopro V2: private, fast, on-device text-to-speech

https://research.haloneuro.ai/posts/sopro-v2
1•gmays•19m ago•0 comments

Policitian Marco Rubio rewrote Intel findings behind Jensen Huang's ouster

https://twitter.com/coinbureau/status/2121622935811051710
4•bigwheels•19m ago•2 comments

AI Agents, Why Are You All Saying the Same Thing?

https://www.zmistandcopy.com/blog/ai-agents-why-are-you-all-saying-the-same-thing
1•kabrosimova•19m ago•0 comments

Evolving Infra: Agent-Adaptive LLM Serving at Scale

https://arxiv.org/abs/2611.12304
1•matt_d•20m ago•0 comments

Can you write the code to run an airport control tower?

https://holdingpattern.dev/
2•shawnzam•20m ago•1 comments

Streamhouse: A shared data architecture for the age of AI

https://www.streamhouse.com/
1•saikatsg•21m ago•0 comments

From Cybersecurity Platforms to Systems

https://strategyofsecurity.com/p/from-cybersecurity-platforms-to-systems
1•mooreds•22m ago•0 comments

Quebecor makes $31B offer to acquire Telus

https://www.cbc.ca/news/business/quebecor-telus-acquisition-offer-9.7423299
1•ejj28•23m ago•0 comments

Nvidia Announces Collaboration with IBM and Fermi National Accelerator Lab

https://nvidianews.nvidia.com/news/nvidia-announces-collaboration-with-ibm-and-fermi-national-acc...
4•saikatsg•24m ago•1 comments