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/

Tell HN: Meta's AI support feature allows Instagram accounts to be stolen

1•parable•20s ago•0 comments

Mapa.ua – Ukraine War Map

https://mapa.ua/
1•airlabs-co•1m ago•0 comments

Can I just say f*** AI, f*** AI, f*** AI? [video]

https://www.youtube.com/shorts/0z7Q0Bg9TAY
1•tcp_handshaker•1m ago•0 comments

Show HN: Font Wizard Pro – a font manager for iPhone and iPad

https://apps.apple.com/us/app/font-wizard-pro-font-manager/id352966034
1•stalinkay•2m ago•0 comments

Simple systems are the best systems

https://jerodsanto.net/2026/05/simple-systems-are-the-best/
2•jerodsanto•6m ago•0 comments

Economic Growth and Community Well-Being Are Not Opposites

https://www.civicbrand.com/insights/articles/economic-growth-and-community-well-being-are-not-opp...
1•mooreds•7m ago•0 comments

Beyond the API: Why Critical Infrastructure Is Going Streaming

https://schematichq.com/blog/beyond-the-api-why-critical-infrastructure-is-going-streaming
2•mooreds•7m ago•0 comments

Tiendli – e-commerce, reservations and marketplace for Latam SMEs

https://tiendli.com
2•zuomy•10m ago•0 comments

Spaniel – OpenTelemetry viewer for local development (Postman for your traces)

https://github.com/zfogg/spaniel
1•zfogg•11m ago•0 comments

It's Not Just X. It's Y

https://mail.cyberneticforests.com/its-not-just-data-its-post-training/
2•mooreds•14m ago•0 comments

Linear CEO Responds to Corgi (YC S24) CEO on Grindmaxxing

https://twitter.com/karrisaarinen/status/2061139112426623054
3•hbcdbff•15m ago•0 comments

Atherton spent $145K to delay train electrification. The rest of us paid $400M

https://peninsulaforeveryone.org/blog/atherton-spent-145k-to-delay-caltrain-electrification-the-r...
1•mslate•16m ago•0 comments

Fish Sleep a Lot Like Us. (They Even Nap.)

https://www.nytimes.com/2026/05/27/science/fish-sleep-a-lot-like-us-they-even-nap.html
1•cainxinth•18m ago•0 comments

Ask HN: Do you use Cloudflare bot protection? If so, why do you use it?

1•Velocifyer•20m ago•0 comments

Agent-stack – one command to make any repo token-efficient for Claude Code

https://github.com/drmahdikazempour/agent-stack
1•mahdikaz•20m ago•0 comments

G7 Agrees on Shared Language Around Open-Source AI, Open Weights AI

https://www.phoronix.com/news/G7-On-Open-Source-AI
1•winter_blue•22m ago•0 comments

JavaScript Crossword

https://lyra.horse/fun/jscrossword/
3•marvinborner•25m ago•0 comments

Show HN: Pictolab (online HDR image editor)

https://pictolab.io/
2•ChadNauseam•26m ago•1 comments

What Is Code

https://martinfowler.com/articles/what-is-code.html
2•wapasta•31m ago•0 comments

Pixelnet – The social network for game developers

https://pixelnet.flarum.cloud
2•telui•31m ago•1 comments

The need for a socialist planned economy (2021)

https://www.marxist.ca/article/the-need-for-a-socialist-planned-economy
3•vhantz•33m ago•1 comments

New in Svelte – June 2026

https://svelte.dev/blog/whats-new-in-svelte-june-2026
2•levmiseri•35m ago•0 comments

Development Containers

https://containers.dev/
3•hecanjog•39m ago•0 comments

A (small) language model walks through its training text

https://github.com/chrishwiggins/shannon-language-model
3•raybb•41m ago•0 comments

Converting ISO Country Codes to Flag Emojis

https://danq.me/2026/05/31/iso-country-codes-to-flags/
3•bovermyer•44m ago•0 comments

Show HN: Orchid Mantis – A PoC in Rust for Zero Knowledge Proofs of Exploit

https://github.com/unprovable/OrchidMantis
2•unprovable•44m ago•1 comments

When an agent can explain anything, what is the role of human-centric docs?

https://www.dbreunig.com/2026/05/31/what-do-humans-need-from-docs.html
3•dbreunig•47m ago•0 comments

We Built a Real-Time AI Research Collaborator into Our Jot Writing Tool

https://medium.com/@vektormemory/we-built-a-real-time-ai-research-collaborator-into-our-jot-writi...
2•vektormemory•48m ago•0 comments

Show HN: Llmff v1.0 FFmpeg for Inference

https://github.com/syndicalt/llmff
3•syndicalt•51m ago•0 comments

Show HN: Zaxy v1.0

https://docs.zaxy.io/
2•syndicalt•52m ago•0 comments