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•9mo ago

Comments

bastawhiz•9mo ago
Is this a problem that people actually have?
xeromal•9mo ago
Fun side project man!
primitivesuave•9mo 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•9mo 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•9mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•9mo 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•9mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

CoreCollective for the next era of open collaboration for the Arm SW ecosystem

https://newsroom.arm.com/blog/introducing-corecollective
1•fork-bomber•58s ago•0 comments

Tax credits for solar panels are available, but the catch is you can't own them

https://www.npr.org/2026/02/20/nx-s1-5649474/solar-panel-tax-credit
1•toomuchtodo•1m ago•0 comments

Show HN: ShouldISwap – Compare crypto pair rates against historical averages

https://shouldiswap.com/
1•Herbyg•1m ago•0 comments

We Are the One and Only You

https://onefoottsunami.com/2026/02/25/we-are-the-one-and-only-you/
1•zdw•1m ago•0 comments

Dwitter Beta – Creative coding in 140 characters

https://korben.info/dwitter-beta-creative-coding-javascript.html
1•KilledByAPixel•1m ago•0 comments

Ghostly UV sparks light up forests as thunderstorms pass overhead

https://www.scientificamerican.com/article/ghostly-uv-sparks-light-up-forests-as-thunderstorms-pa...
1•mudil•2m ago•0 comments

Tell HN: I launched a focus app on Kickstarter – what I learned about friction

1•artzev_•4m ago•0 comments

CHERIoT Rust: Status update #0

https://rust.cheriot.org/2026/02/15/status-update.html
1•remexre•5m ago•0 comments

The CHIPS Act Spends $52.7B on Fabs but $0 on Defending Them from Ransomware

https://thehgtech.com/articles/semiconductor-ransomware-chips-act-2026.html
1•thehgtech•6m ago•0 comments

Show HN: Dance of Tal V2 – Dependency injection and lockfiles for AI agents

https://github.com/dance-of-tal/dance-of-tal
1•monarchjuno•7m ago•1 comments

Trump made tax day more complicated. ChatGPT and Claude can make it easier

https://www.vox.com/life/480317/trump-taxes-chatgpt-claude-turbotax
1•speckx•7m ago•0 comments

Turning a 2 ton robot into a 3D printer [video]

https://www.youtube.com/watch?v=peY_KK_nGc8
1•rmast•7m ago•0 comments

Show HN: Nosh – Fast native shell with built-in AI (natural language commands)

https://github.com/TryNosh/nosh
1•pouya-eghbali•7m ago•0 comments

"A file is an app" – Selfware, a unified file format for the Agent eramory)

https://github.com/floatboatai/selfware.md
3•floatboat•8m ago•1 comments

Show HN: Read the Room, a FOSS human bioindicator

1•soudk•9m ago•0 comments

Who will regulate Elon Musk and China's data centers in space?

https://restofworld.org/2026/orbital-data-centers-ai-sovereignty/
1•vinhnx•9m ago•0 comments

AncestorTree – Open-source genealogy for Vietnamese families

1•dttai•9m ago•0 comments

Retool silently removes self-hosted plans

https://community.retool.com/t/self-hosted-docs-now-state-enterprise-only/64586
2•assumptions•9m ago•0 comments

Was software a scarce commodity all along?

https://harmonique.one/posts/was-software-a-scarce-commodity-all-along
1•futurecat•9m ago•0 comments

Online Accusations in Guthrie Abduction Leave One Family 'Scared Numb'

https://www.nytimes.com/2026/02/25/us/nancy-guthrie-true-crime-accusations.html
1•duxup•11m ago•0 comments

AI Dev Tool Stack for 2026

https://qa.tech/blog/ai-dev-tool-stack-for-2026
2•Liriel•12m ago•1 comments

Show HN: Memograph CLI- A tool to diagnose 'memory failures' in AI agents

1•memograph•12m ago•1 comments

Show HN: Dola Seed 2.0 – AI video generator with multi-shot narrative control

https://dolaseed.site
1•yuni_aigc•12m ago•1 comments

Show HN: SeeVideo – Access Seedance 2.0 and Kling 3.0 without a subscription

https://seevideo.dance/
1•naxtsass•13m ago•0 comments

Jesse Jackson Paved the Way for a New US Left

https://jacobin.com/2026/02/jesse-jackson-death-left-sanders/
2•PaulHoule•13m ago•0 comments

We run 20M models in parallel on Ray

https://mixpeek.com/blog/ray-distributed-ml-pipeline-architecture
1•Beefin•13m ago•1 comments

HTP

1•MiachelC•13m ago•0 comments

Ask HN: What if your LLM violates a patent?

1•VikingCoder•13m ago•0 comments

When access to knowledge is no longer the limitation

https://idiallo.com/blog/access-to-knowledge-is-no-longer-a-limitation
1•Brajeshwar•14m ago•0 comments

The Absolute Insider Mess of Prediction Markets

https://philippdubach.com/posts/the-absolute-insider-mess-of-prediction-markets/
1•Brajeshwar•14m ago•1 comments