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•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/

Builders Fallacy

https://davidgu.com/bf.html
1•benswerd•4m ago•1 comments

DAAF: Rigorous+responsible data analysis/research with Claude Code (open-source)

https://daaf.openaugments.org/
1•brhkim•4m ago•0 comments

Interview with Sam Conman

https://zhenyi.gibber.blog/interview-with-sam-conman
1•zhenyi•6m ago•0 comments

Mec builds first High-NA EUV-fabricated quantum dot qubit

https://www.tomshardware.com/tech-industry/semiconductors/imec-builds-worlds-first-high-na-euv-fa...
1•sbulaev•6m ago•0 comments

Type.lol

https://type.lol/
1•bookofjoe•6m ago•0 comments

Show HN: Nerve – self hosted runtime for AI agents

https://github.com/ClickHouse/nerve
2•animetyan•10m ago•0 comments

What Is a Direct Attach Copper (DAC) Cable

https://www.servethehome.com/what-is-a-direct-attach-copper-dac-cable/
1•teleforce•13m ago•0 comments

Every Frontier AI Is INTJ

https://zonted.com/posts/every-ai-is-intj/
1•bernardjhuang•13m ago•0 comments

PDFearn free $3 method daily pdf

https://pdfearn.blogspot.com/2026/05/free-pdf-earn-3-per-day-by.html
1•iLzKii•13m ago•1 comments

Canada losing top talent as workers head to the U.S.

https://www.bnnbloomberg.ca/investing/market-outlook/2026/05/25/market-outlook-canada-losing-top-...
4•leopoldj•14m ago•0 comments

Ask HN: Laptops with good Linux support and good build quality?

1•asxndu•15m ago•3 comments

Pope Leo's 'Magnifica humanitas': AI must serve humanity not concentrate power

https://www.vaticannews.va/en/pope/news/2026-05/pope-leo-xiv-encyclical-magnifica-humanitas-ai.html
2•SebastianSosa•17m ago•0 comments

How Shamir's Secret Sharing Works

https://ente.com/blog/how-shamirs-secret-sharing-works/
1•subract•19m ago•0 comments

Is 2027 the Next Year?

https://bsky.app/profile/davis.social/post/3mmpcff4cdc2r
1•hansmayer•19m ago•0 comments

Route 4: Reconstructing Execution Continuity in EVM Environments

https://blog.bridgexapi.io/route-4-reconstructing-execution-continuity-in-evm-environments
1•Bridgexapi•20m ago•0 comments

American journalist charged with serving as unregistered agent for China

https://www.politico.com/news/2026/05/25/american-journalist-unregistered-agent-china-00935518
1•cwwc•23m ago•0 comments

Agentic Patterns

https://veso.ai/research/agentic-patterns/
2•kinlan•23m ago•0 comments

The Virgin Unicorns

https://www.geekwire.com/2026/etzioni-on-ai-the-virgin-unicorns/
2•jkuria•25m ago•0 comments

Disappearing Polymorph

https://en.wikipedia.org/wiki/Disappearing_polymorph
1•atombender•26m ago•0 comments

Taking a walk may lead to more creativity than sitting, study finds

https://www.apa.org/news/press/releases/2014/04/creativity-walk
3•bilsbie•26m ago•3 comments

Micromania: The Whole Truth about Home Computers (1984)

https://taff.org.uk/ebooks.php?x=Micromania
2•sohkamyung•27m ago•0 comments

Astrum Verum – A Vector Symbolic cognitive memory that beats RAG

https://github.com/vitaliyfedotovpro-art/astrum-verum
1•astrumverum•29m ago•0 comments

The promise of weight-loss drugs keeps growing

https://www.washingtonpost.com/opinions/2026/05/24/glp-1-weight-loss-drugs-keep-growing-more-prom...
1•paulpauper•35m ago•0 comments

AI scans 400k Reddit posts and finds hidden Ozempic side effects

https://www.sciencedaily.com/releases/2026/05/260523103914.htm
2•paulpauper•35m ago•0 comments

The Making of Indian Statistics

https://altermag.com/articles/the-making-of-indian-statistics
2•paulpauper•35m ago•0 comments

Rethinking schizophrenia: insights from genomics and implications for research

https://www.nature.com/articles/s41380-026-03654-9
3•bookofjoe•39m ago•0 comments

Wazuh Detection Capabilities with Clickdetect, Opensearch PPL and Sigma Rules

https://medium.com/@souzo/extending-wazuh-detection-capabilities-with-clickdetect-opensearch-ppl-...
1•souzo•42m ago•0 comments

Permitted by Physics

https://protortyp.github.io/posts/permitted-by-physics/
1•protortyp•42m ago•0 comments

Show HN: Using Tailscale with an OrbStack VM on macOS

https://github.com/highpost/tailscale-macos-vm
2•highpost•46m ago•1 comments

I'm done. I'm f***ing done [video]

https://www.youtube.com/watch?v=VucjurQUHO8
12•kshri24•54m ago•2 comments