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/

The Art of Asking Questions

https://asteriskmag.com/issues/04/the-art-of-asking-questions
1•andsoitis•2m ago•0 comments

Selling Abstraction

https://asteriskmag.com/issues/14/selling-abstraction
1•andsoitis•3m ago•0 comments

GPT 5.6 chart analysis tool

http://derac.org/gpt56charts/
1•derac•9m ago•1 comments

Persistent memory for Claude Code that survives context compaction

https://mentedb.com
1•mentedb•9m ago•0 comments

Show HN: BoundFlow – an open-source control plane for AI agents

https://github.com/boundflow/boundflow
1•alama24•10m ago•0 comments

Show HN: The Quiet Map – Earth's quietest place, measured by seismometers

https://thequietmap.org/
1•theceka•10m ago•0 comments

Where did my segfault go?

https://rmpr.xyz/Where-did-my-segfault-go/
2•RMPR•10m ago•0 comments

Blocking Distracting News Links

https://retout.co.uk/2026/07/10/blocking-distracting-news-links/
1•edward•14m ago•0 comments

Here's Why Some Humans Can Hear Super Low-Frequency Sounds

https://nautil.us/heres-why-some-humans-can-hear-super-low-frequency-sounds-1282626
2•Brajeshwar•15m ago•0 comments

GitByBit

https://gitbybit.com/
1•neochief•16m ago•0 comments

Madame Semver Will See You Now

https://nesbitt.io/2026/05/10/madame-semver-will-see-you-now.html
2•birdculture•17m ago•0 comments

LLMs are adapting their environments to themselves

https://ianbarber.blog/2026/07/11/who-is-walking-who/
2•phpencil•19m ago•0 comments

Show HN: Document Scanner for Freight Verification

https://www.cipherandrow.com/
1•jnowlan21•21m ago•0 comments

Being part of one of the biggest wealth creation events in history (AI)

https://www.washingtonpost.com/technology/2026/07/11/ais-soon-to-be-billionaires-want-know-what-d...
1•bookofjoe•23m ago•1 comments

Bluesky has an official CEO again

https://www.engadget.com/2212928/bluesky-official-ceo-toni-schneider/
1•cdrnsf•23m ago•0 comments

Cuban Missile Crisis II – Cuban Has Drones Capable of Striking the USA

https://jeffreylminch.substack.com/p/cuban-missile-crisis-ii-cuban-has
1•rmason•24m ago•1 comments

Harmonic Contour Integration: Compact, distributed edge detection algorithm

https://github.com/RenderBear/hci
1•RenderBear•24m ago•1 comments

Bitemporal provenance in agent memory: What did we believe, when, and why

1•shanrizvi•24m ago•0 comments

Construction workers, electricians, couriers: ICE disguises to detain migrants

https://english.elpais.com/usa/2026-07-11/construction-workers-electricians-couriers-how-ice-agen...
3•hn_acker•25m ago•2 comments

Restoring and Demoing 1960s Vintage Computers at the Computer History Museum [pdf]

https://ibm-1401.info/pictures/Proc-MIW-2017-Garner-1401PDP1.pdf
2•rbanffy•25m ago•0 comments

Show HN: OpenBenchmarks – Helping agents discover and pick the right SaaS APIs

https://openbenchmarks.com
4•fenilsuchak•26m ago•2 comments

Entire Is building a Git network for agents

https://thenewstack.io/entire-git-for-agents/
1•rmason•27m ago•0 comments

The code review is dead, long live the code review

https://www.thoughtworks.com/en-us/insights/blog/testing/code-review-dead-long-live-code-review
1•backlit4034•27m ago•0 comments

OpenAI Forked Git on GitHub

https://github.com/openai/git
22•rahlokzero•27m ago•16 comments

Why does Opus 4.8 think it's morally superior

1•hughmcinnis•32m ago•1 comments

I built TradingSpy: local, privacy-first AI trading assistant(First Open Source)

https://github.com/mrhustlex/TradingSpy-TradingAgentService
1•mrhustlex•32m ago•0 comments

GPT-5.6-Sol just accidentally deleted almost ALL of my Mac's files

https://xcancel.com/mattshumer_/status/2075657271401390161
3•theanonymousone•33m ago•0 comments

QuickJS: An Embeddable JavaScript Engine

https://bellard.org/quickjs/
1•azhenley•35m ago•0 comments

Modern Design Headache: A Cerebral Basis for Visual Discomfort and Visual Stress

https://www.mdpi.com/2411-5150/10/2/34
1•rawgabbit•40m ago•1 comments

Eden Surge

https://surge.edenictech.com/
1•VictorMgaya•43m ago•0 comments