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/

Show HN: A React component optimized for 1987

https://github.com/smysnk/react-retro-display-tty-ansi-ascii
1•smysnk•43s ago•0 comments

Programming Lewis Carroll's Memoria Technica (2024)

https://ztoz.blog/posts/memoria_technica/
1•emigre•2m ago•0 comments

Food Price Outlook, 2026

https://www.ers.usda.gov/data-products/food-price-outlook/summary-findings
1•petethomas•3m ago•0 comments

Replit expands access to software creation with GPT‑5.6 Luna

https://openai.com/index/replit/
2•wertyk•5m ago•0 comments

Show HN: Blade – a terminal UI for starting and supervising project commands

https://github.com/adnanh/blade
1•adnanh•5m ago•0 comments

Jeff Dean's first public talk after leaving Google

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

ICE boss to agents: Leave the Meta spy glasses at home

https://www.theregister.com/security/2026/08/19/ice-boss-to-agents-leave-the-meta-spy-glasses-at-...
3•Bender•7m ago•0 comments

Postgres pioneer credits Oracle with helping his database take over the world

https://www.theregister.com/databases/2026/08/19/postgres-pioneer-credits-oracle-with-helping-his...
2•Bender•7m ago•0 comments

GitHub blames 8-hour outage on autoscaling fail and VS Code retry storm

https://www.theregister.com/saas/2026/08/19/github-blames-8-hour-outage-on-autoscaling-fail-and-v...
1•Bender•8m ago•0 comments

Will you be wearing an exoskeleton in ten years? Tech could change how we move

https://www.nature.com/articles/d41586-026-02527-z
1•bookofjoe•9m ago•1 comments

Show HN: Dispositio – a TUI project planner that stores plans as plain Markdown

https://systemist.net/tools/dispositio
1•tsraveling•10m ago•0 comments

New AirPods leak reveals built-in cameras and Visual Intelligence

https://www.dexerto.com/entertainment/new-airpods-leak-reveals-built-in-cameras-and-visual-intell...
1•madihaa•12m ago•0 comments

LoCalMem: Type-Directed Adaptive Serialization for LAM & CAM

https://dl.acm.org/doi/10.1145/3828688
1•matt_d•12m ago•0 comments

On-chip solar power source for self-powered smart microsensors.Bulk CMOS process

https://www.nature.com/articles/s44172-025-00358-w
1•initramfs•15m ago•0 comments

Vibe-Kanban-Alternative – Classic AI agent Kanban with mem0 persistent memory

https://github.com/flashlan/vibe-kanban-alternative
1•datapointnet•16m ago•0 comments

The global race to make a practical quantum computer took a big leap forward

https://theconversation.com/the-global-race-to-make-a-practical-quantum-computer-just-took-a-big-...
1•runningmike•17m ago•0 comments

Qwen3.8-27B-Uncensored-MLX

https://huggingface.co/orcarouter/Qwen3.8-27B-Uncensored-MLX
2•worldofmatthew•18m ago•0 comments

GEN-1.5, a one-shot learner

https://generalistai.com/blog/gen-1.5
1•beklein•18m ago•0 comments

Mac Gaming: Native Play Quake 1 «Dawn of the Machine» from Steam

https://swissmacuser.ch/macos-game-steam-quake-30th-anniversary-dawn-of-the-machine-mg3/
1•inex•20m ago•0 comments

YouTube Offers Creators Millions to Not Work with Netflix

https://www.bloomberg.com/news/articles/2026-08-19/youtube-offers-creators-millions-to-not-work-w...
2•mfiguiere•22m ago•0 comments

Moral Disengagement

https://en.wikipedia.org/wiki/Moral_disengagement
4•soupspaces•27m ago•0 comments

Show HN: Turning websites into micro CLIs for Claude Code to save on tokens

https://github.com/only-cli/oc
3•hyes•28m ago•0 comments

Faster pull requests are faster horses

https://royalicing.com/2026/faster-pull-requests-faster-horses
2•burntcaramel•29m ago•0 comments

Nvidia Alpamayo 2 Super: The Frontier Open Model for Autonomous Vehicles

https://blogs.nvidia.com/blog/alpamayo-2-super-open-model-now-available/
5•gmays•31m ago•0 comments

Curta Calculator

https://en.wikipedia.org/wiki/Curta
4•michaelleland•32m ago•0 comments

Great Event Planning Skill

https://github.com/arnons1/great-event-planning-skill
2•arnon•33m ago•0 comments

Sleeping at Scale

https://buildkite.engineering/sleeping-at-scale/
2•jhealy•35m ago•0 comments

Anthropic Refuses to Support Agents.md

https://github.com/anthropics/claude-code/issues/6235
4•fg137•35m ago•0 comments

Ask HN: How zero-server apps sync keys and chat history securely across devices?

1•Brandon-Coll•35m ago•0 comments

The existence of the square root of two

https://www.dpmms.cam.ac.uk/~wtg10/roottwo.html
2•pykello•35m ago•1 comments