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: Openleetcode – local LeetCode runner where tests live in the repo

https://github.com/therepanic/openleetcode
1•therepanic•2m ago•0 comments

SignFile – Sign anything. One flat price

https://signfile.io/
1•abdullah_eldoud•2m ago•0 comments

There is no free benchmark

https://www.pnas.org/doi/10.1073/pnas.2509757122
1•hhs•4m ago•0 comments

Show HN: A Kakeya Conjecture Game

https://quantisan.github.io/kakeya-game/
1•quantisan•5m ago•1 comments

Sperm Whales blow bubbles to achieve restful, vertical sleep

https://news.st-andrews.ac.uk/archive/sperm-whales-blow-bubbles-to-achieve-restful-vertical-sleep/
1•hhs•6m ago•0 comments

The 0,5 MB of nothing in all Apple Music files (2020)

https://www.ctrl.blog/entry/apple-music-nullbytes.html
2•downbad_•7m ago•0 comments

Insect submariners survive the depths without imploding

https://news.ubc.ca/2026/07/insect-submariners-survive-the-depths-without-imploding/
1•hhs•9m ago•0 comments

Show HN: Evidence Graph – type checking for the specs your AI agent implements

https://github.com/samchon/lint-plugin-evidence
1•autobe•10m ago•0 comments

Lawsuit Against Meta over Social Media Addiction Is Dropped

https://www.nytimes.com/2026/07/22/technology/meta-social-media-lawsuit.html
1•lxm•12m ago•0 comments

I don't have a dream job

https://harsehaj.substack.com/p/i-dont-have-a-dream-job
1•harsehaj•15m ago•0 comments

Glacier App

https://www.theglacierapp.com/
1•josephscott•16m ago•0 comments

The Knowledge Warehouse

https://productnow.ai/blogs/what-is-a-knowledge-warehouse
1•kadhirvelm•18m ago•0 comments

No mandatory registration. No identity verification. You control your data

https://everiot.org/
2•doener•19m ago•0 comments

Show HN: How well do you use Claude Code?

3•Paarthmj•19m ago•2 comments

Anthropic not giving up on the blue teams just yet

https://cephalosec.com/blog/anthropic-not-giving-up-on-the-blue-team-just-yet/
1•Versipelle•22m ago•0 comments

Ford Will Use Apple Maps in New Self-Driving System

https://www.nytimes.com/2026/07/23/business/ford-apple-software-self-driving.html
5•bookofjoe•29m ago•2 comments

Inside Ukraine's Kill Zone

https://www.reuters.com/graphics/UKRAINE-CRISIS/KILL-ZONE/znpnojmknvl/
3•bushwart•32m ago•0 comments

American literature, charted in one monumental map

https://bigthink.com/strange-maps/american-literature-charted-in-one-monumental-map/
1•sohkamyung•33m ago•0 comments

SpaceX Starship Flight 13 livestream [video]

https://www.spacex.com/launches/starship-flight-13
5•cryptoz•35m ago•2 comments

The challenges companies face to launch robotaxis in Europe

https://www.euronews.com/business/2026/07/24/the-challenges-companies-face-to-launch-robotaxis-in...
2•Markoff•36m ago•0 comments

GR: Ban LLM Contributions from Debian

https://lists.debian.org/debian-vote/2026/07/msg00000.html
3•thewebguyd•36m ago•0 comments

Implementing SEH in Rust and why you shouldn't do it

https://engineering.zeroitlab.com/2022/03/13/rust-seh/
2•not_a9•37m ago•0 comments

How to turn Claude Code transcripts into a shareable link

https://lore.link/blog/how-we-built-share
1•feifan•37m ago•0 comments

Fragmentation of sunfish caused by high-impact ramming behavior in orcas

https://www.frontiersin.org/journals/ethology/articles/10.3389/fetho.2026.1835536/full
2•mooreds•39m ago•0 comments

Feel The AGI: a collection of my Twitter bookmarks over the past year

https://feel-the-agi.exe.xyz/
1•voat•42m ago•0 comments

Untangler, Rectangle-style window management for GNOME

https://github.com/bluvulture/untangler
2•shonster88•43m ago•0 comments

Ask HN: What's Up with Archive.today?

3•nobody9999•43m ago•3 comments

Dolmenwood: Fantasy RPG built around the acclaimed Old-School Essentials rules

https://necroticgnome.com/collections/dolmenwood
2•doener•45m ago•0 comments

Benchmarking Qwen 3.6 35B MoE (3B active) on an RTX 3090

https://www.gilesthomas.com/2026/07/benchmarking-qwen-3-6-35b-moe-rtx-3090
2•gpjt•46m ago•0 comments

Rmatch: Fast Java native regex matcher for lots of expressions and data

https://github.com/la3lma/rmatch
2•rmzdotno•46m ago•0 comments