frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•9mo ago

Comments

bastawhiz•9mo ago
Is this a problem that people actually have?
xeromal•9mo ago
Fun side project man!
primitivesuave•9mo 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•9mo 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•9mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•9mo 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•9mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Ask HN: Since of humanity do we have made any difference in the universe?

1•modinfo•1m ago•0 comments

Oral history of Robert P. Colwell, Intel Pentium / IA32 lead architect [pdf]

https://www.sigmicro.org/media/oralhistories/colwell.pdf
1•fanf2•2m ago•0 comments

Wellington rages as litres of raw sewage pour into ocean

https://www.theguardian.com/world/2026/feb/19/wellington-raw-sewage-leak-spill-water-new-zealand
1•rguiscard•2m ago•0 comments

Bitwarden ignored serious CVEs reported 4 years ago

https://www.reddit.com/r/Bitwarden/s/LsJWCaQ6YD
1•cromka•4m ago•1 comments

Music Generation comes to Gemini [video]

https://www.youtube.com/watch?v=TD6FPndjhoE
1•Alifatisk•6m ago•0 comments

Boundary Point Jail A new way to break the strongest AI defences

https://www.aisi.gov.uk/blog/boundary-point-jailbreaking-a-new-way-to-break-the-strongest-ai-defe...
1•iNic•15m ago•0 comments

Show HN: Nanbeige 4.1-3B running in the browser via WebGPU

https://huggingface.co/spaces/victor/nanbeige
1•victormustar•18m ago•1 comments

On-the-fly code generation with OpenClaw won't fly

https://medium.com/versanova/on-the-fly-code-generation-wont-fly-0f7b02e69195xa
1•gauravsc•19m ago•0 comments

Forward propagation of errors through time

https://nicolaszucchet.github.io/Forward-propagation-errors-through-time/
1•iNic•20m ago•0 comments

Firms must remove 'revenge porn' in 48 hours or risk being blocked, says Starmer

https://www.theguardian.com/society/2026/feb/18/tech-firms-must-remove-revenge-porn-in-48-hours-o...
3•chrisjj•27m ago•1 comments

Extension of interim rules to combat CSAM must prevent indiscriminate scanning

https://www.edps.europa.eu/press-publications/press-news/press-releases/2026/extension-interim-ru...
2•latexr•32m ago•1 comments

You can jailbreak an F-35 just like an iPhone, says Dutch defense chief

https://www.theregister.com/2026/02/18/jailbreak_an_f35/
2•Brajeshwar•32m ago•0 comments

The Rise of Beauty Tech: How Technology Is Transforming the Beauty Industry

https://enatega.com/beauty-services-scheduling-solution/
1•ninjascode•32m ago•2 comments

Q: What's Going on Between Anthropic and The Pentagon?

https://www.wsj.com/livecoverage/stock-market-today-dow-sp-500-nasdaq-02-18-2026/card/q-what-s-go...
3•doener•33m ago•3 comments

Show HN: Create an onboarding flow on Flutter in 5 min

https://fluo.dev
1•jordanbonnet•34m ago•0 comments

Evaluating AI agents: Real-world lessons from building agentic systems at Amazon

https://aws.amazon.com/blogs/machine-learning/evaluating-ai-agents-real-world-lessons-from-buildi...
2•bpedro•35m ago•1 comments

Will Science Ever Explain Consciousness?

https://philipgoff.substack.com/p/will-science-ever-explain-consciousness
1•mathgenius•41m ago•0 comments

Show HN: Pixrep – Turn code repositories into PDFs for multimodal LLMs

https://github.com/TingjiaInFuture/pixrep
1•TingjiaInFuture•41m ago•0 comments

Show HN: Free developer utility API – QR, fake data, URL shortener, 40 tools

https://conway-toolbox-production.up.railway.app/ui
1•devtoolbox•44m ago•3 comments

Set It and Forget It: 5 Recurring Reports You Can Automate with AI

https://helpmaton.com/blog/set-it-and-forget-it-5-recurring-reports-you-can-automate-with-helpmat...
1•pgte•48m ago•0 comments

No ICE in Minnesota Charity Bundle Trailer [video]

https://www.youtube.com/watch?v=-k_JPei0YNc
1•mkesper•48m ago•0 comments

Why Some People Thrive on Four Hours of Sleep

https://www.newyorker.com/culture/annals-of-inquiry/why-some-people-thrive-on-four-hours-of-sleep
3•rbanffy•49m ago•0 comments

Futhark

https://futhark-lang.org/
1•tosh•49m ago•0 comments

Excruciating tropical disease can now be transmitted in most of Europe

https://www.unmc.edu/healthsecurity/transmission/2026/02/18/excruciating-tropical-disease-can-now...
3•Brajeshwar•49m ago•0 comments

Canada will have to accept higher U.S. tariffs and unthinkable concessions

https://www.theglobeandmail.com/business/commentary/article-canada-will-have-to-accept-us-higher-...
1•petethomas•50m ago•0 comments

Minions: Stripe's one-shot, end-to-end coding agents

https://stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents
4•tngranados•53m ago•0 comments

The Structural Anatomy of a Bedroom Furniture Set: Beyond the Aesthetic

https://medium.com/@sumitkumar_33957/why-most-dressing-tables-look-good-but-dont-get-used-477d9f0...
1•dreamhomestore•54m ago•1 comments

How to Stay in the Details at Scale

https://www.dave-bailey.com/blog/details
1•davesuperman•54m ago•0 comments

OAI: EVM Bench LLM Accuracy on Smart Contract Review and Pentesting

https://openai.com/index/introducing-evmbench/
1•GustavHartz•56m ago•0 comments

Tuple Spaces

https://www.mcs.anl.gov/~itf/dbpp/text/node44.html#SECTION02550000000000000000
1•todsacerdoti•57m ago•0 comments