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/

They Tried to Catch a Predator. They Trapped Themselves Instead

https://www.nytimes.com/2026/06/10/technology/predator-catcher-vitaly-mistake.html
1•_tk_•58s ago•0 comments

Sharper context. Fewer tokens. Open-source middleware for Claude Code

https://github.com/cytostack/openwolf
1•momentmaker•1m ago•0 comments

Show HN: Linkslap – rate any single URL: an article, a listing, a playlist

https://linkslap.com/
1•ob3ron•2m ago•0 comments

55% of US retail investors plan to buy SpaceX stock, 86% will use new funds

https://www.kgrid.ai/reports/spacex-ipo-retail-data
2•malai723•2m ago•0 comments

Tim O'Reilly – Look at the rate of change, not the volume

https://twitter.com/timoreilly/status/2064717328793874632
2•rmason•2m ago•0 comments

The Loneliness of the Competitive Quizzer

https://thebaffler.com/latest/the-loneliness-of-the-competitive-quizzer-basile
1•cainxinth•2m ago•0 comments

Neura Robotics Announces Record Series C of up to $1.4B

https://neura-robotics.com/record-series-c/
1•TobiasJacob•2m ago•0 comments

USB Power Delivery: Plugging into the Benefits. An Explainer

https://www.aptiv.com/en/insights/article/usb-power-delivery-plugging-into-the-benefits
1•ohjeez•4m ago•0 comments

American capitalism is run by millionaires, not billionaires

https://www.economist.com/business/2026/06/10/american-capitalism-is-run-by-millionaires-not-bill...
1•andsoitis•6m ago•0 comments

Show HN: I built a keyboard with typing effects

1•vitalipom•6m ago•0 comments

YouTube Processed 2.5B Content ID Copyright Claims in 2025

https://torrentfreak.com/youtube-processed-2-5-billion-content-id-copyright-claims-in-2025/
1•gslin•6m ago•0 comments

GitHub pulls pin on NPM's auto-run scripts

https://www.theregister.com/devops/2026/06/10/github-pulls-pin-on-npms-auto-run-scripts/5253453
1•MrDresden•6m ago•0 comments

The Woman who stowed away on a ship to report on D-Day

https://www.bbc.com/culture/article/20260608-the-woman-who-sneaked-into-the-d-day-landings
1•ViktorRay•7m ago•0 comments

Fear of the SaaSpocalypse is tormenting techland

https://www.economist.com/business/2026/06/10/fear-of-the-saaspocalypse-is-tormenting-techland
1•andsoitis•10m ago•1 comments

PRC-linked influence operations are targeting AI debates in the US

https://openai.com/index/prc-linked-influence-operations-ai-debates/
3•amrrs•12m ago•1 comments

Malware devs added nuclear and bioweapons text to trigger LLM safety refusals

https://twitter.com/jsrailton/status/2064661778978533571
1•porridgeraisin•12m ago•1 comments

Tech Influence Watch

https://influence.citationneeded.news/
1•okneil•12m ago•0 comments

How can I create a hyperlink in Android's Gmail app? (2021)

https://support.google.com/mail/thread/131398911/how-can-i-create-a-hyperlink-in-android-s-gmail-...
1•debo_•13m ago•0 comments

Botfile – Dotfiles for Agents

https://botfile.org/
1•maitland•13m ago•1 comments

Honor your GitHub Sponsors

https://sponsor.pics
1•codingjoe•14m ago•1 comments

Jevons Paradox

https://en.wikipedia.org/wiki/Jevons_paradox
1•kordlessagain•15m ago•0 comments

Stack Overflow for Agents

https://agents.stackoverflow.com/
2•jasondavies•15m ago•0 comments

Rename count:Count to von:Count

https://github.com/pgdogdev/pgdog/pull/1050
1•xkef•16m ago•0 comments

The State of Ship Quality: We Audited Every YC W26 Website

https://overlayqa.com/blog/yc-w26-ship-quality/
1•emvied•18m ago•0 comments

Ask HN: Would it be useful to have a slop button in addition to flag?

2•BugsJustFindMe•19m ago•1 comments

Every breaking change in the July MCP spec, and how to migrate

https://mcpmigrate.dev/blog/mcp-spec-2026-07-28-migration-guide
1•dougwalseth•19m ago•0 comments

Callisto, Jupiter's Ancient Moon

https://skyandtelescope.org/astronomy-news/meet-callisto-jupiters-ancient-moon/
1•smooke•20m ago•0 comments

An Overview of Modern AI Robotics from First Principles

https://interlatent.com/blog/interlatent-modern-ai-robotics-first-principles
1•jdkee•21m ago•0 comments

Tangled Newsletter 02 – Vouching, CI logs over SSH, and more

https://blog.tangled.org/newsletter-02/
1•g0xA52A2A•23m ago•0 comments

Goofstump

https://goofstump.space/
1•enjoyyourlife•23m ago•0 comments