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•10mo 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/

The Mountain Eagle Is Now Online

https://www.mountaineagle.net/articles/display/?entry_short=the-mountain-eagle-is-now-online
1•retrocog•33s ago•1 comments

German Tank Problem

https://en.wikipedia.org/wiki/German_tank_problem
1•ColinWright•2m ago•0 comments

Latency

https://cheat.sh/latency
1•vismit2000•3m ago•0 comments

Show HN: Agents-lint – detect stale paths and context rot in AGENTS.md files

https://github.com/giacomo/agents-lint
1•devGiacomo•3m ago•1 comments

Show HN: Recall – Persistent Memory for Claude Code via MCP Hooks

https://recallmcp.com
1•elfenleid•4m ago•0 comments

The Reason Anthropic Wants Guardrails

https://www.theatlantic.com/ideas/2026/02/anthropic-pentagon-ai/686172/
1•Stratoscope•4m ago•1 comments

Ask HN: How do products get priced after the bubble bursts?

1•AbstractH24•5m ago•0 comments

Show HN: Alyt – type-safe multi-provider analytics SDK

https://github.com/jrandolf/alyt
1•jrandolf•6m ago•0 comments

Joint Statement from OpenAI and Microsoft

https://openai.com/index/continuing-microsoft-partnership/
2•alex_young•10m ago•0 comments

OpenAI reaches deal to deploy AI models on U.S. DoW classified network

https://www.reuters.com/business/openai-reaches-deal-deploy-ai-models-us-department-war-classifie...
3•erhuve•11m ago•1 comments

Six Simple Machines: Lever, Wheel, Pulley, Inclined Plane, Wedge, and Screw

https://en.wikipedia.org/wiki/Simple_machine
1•gurjeet•12m ago•0 comments

Drug-resistant strain of deadly 'ancient fever' spreading to US

https://www.dailymail.co.uk/health/article-15598967/typhoid-fever-surging-drug-resistant-US-UK.html
1•Bender•13m ago•0 comments

OpenAI Onboards Department of War

https://twitter.com/i/status/2027578652477821175
1•dinosor•17m ago•0 comments

The use of hydroxyapatite toothpaste to prevent dental caries

https://pmc.ncbi.nlm.nih.gov/articles/PMC8930857/
2•gurjeet•19m ago•0 comments

Show HN: TattooForge – AI Tattoo Design Generator

https://tattooforge.art
1•crawde•20m ago•0 comments

Agreement with the Department of War

https://twitter.com/sama/status/2027578580159631610
2•madars•21m ago•0 comments

OpenAI Entered into an agreement with the DoD last January

https://defensescoop.com/2025/01/16/openais-gpt-4o-gets-green-light-for-top-secret-use-in-microso...
1•dakolli•22m ago•1 comments

Please, please, please stop using passkeys for encrypting user data

https://blog.timcappalli.me/p/passkeys-prf-warning/
3•zdw•23m ago•0 comments

Book Review: 'A World Appears,' by Michael Pollan

https://www.nytimes.com/2026/02/27/books/review/a-world-appears-michael-pollan.html
1•lxm•24m ago•0 comments

Jemini Deep Research

https://twitter.com/jmailarchive/status/2027516806806835548
3•jbegley•26m ago•1 comments

Ancient Killer Is Rapidly Gaining Resistance to Antibiotics, Scientists Warn

https://www.sciencealert.com/ancient-killer-is-rapidly-gaining-resistance-to-antibiotics-scientis...
1•thelastgallon•27m ago•0 comments

Burger King is testing AI headsets that will know if employees say 'welcome'

https://abc7.com/post/burger-king-is-testing-ai-headsets-will-know-employees-say-welcome-thank/18...
1•lxm•27m ago•0 comments

Elementary OS 8.1.1 Available Now

https://blog.elementary.io/os-8-1-1-available-now/
1•todsacerdoti•29m ago•0 comments

The Rise and Fall of a 3-D Printing Empire

https://www.nytimes.com/2026/02/27/business/3d-printing-industry.html
1•thelastgallon•32m ago•0 comments

Easel: What's New? (Feb 2026)

https://easel.games/blog/2026-feb-update
1•BSTRhino•34m ago•1 comments

OpenAI Executes Agreement with Dept of War for Classified Environment Deployment

https://twitter.com/sama/status/2027578652477821175
33•eoskx•35m ago•8 comments

I Trained My Own AI It Beat ChatGPT [video]

https://www.youtube.com/watch?v=aV4j5pXLP-I
1•yomismoaqui•36m ago•0 comments

"Tonight, we reached an agreement with the Dept. of War to deploy our models"

https://twitter.com/sama/status/2027578508042723599
11•davidbarker•36m ago•0 comments

Liberland

https://en.wikipedia.org/wiki/Liberland
2•pinkmuffinere•38m ago•0 comments

Bootc and OSTree: Modernizing Linux System Deployment

https://a-cup-of.coffee/blog/ostree-bootc/
2•mrtedbear•39m ago•0 comments