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

Comments

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

Show HN: An async bulkhead for Java with explicit overload semantics

https://github.com/janbalangue/async-bulkhead
1•janbalangue•25s ago•0 comments

Show HN: Interactive Timeline of US Legislation (1975–Present)

https://www.chamberzero.com/
1•itta_e_ta•34s ago•0 comments

HTTP RateLimit Headers

https://dotat.at/@/2026-01-13-http-ratelimit.html
1•zdw•44s ago•0 comments

The Unbearable Frustration of Figuring Out APIs

https://blog.ar-ms.me/thoughts/translation-cli/
2•ezekg•1m ago•0 comments

Determinate Secure Packages: Nixpkgs with SBOMs and SLA'd CVE Patching

https://determinate.systems/blog/determinate-secure-packages/
2•grhmc•2m ago•0 comments

Java Data Oriented Programming Concept Proposal, Beyond Records

https://mail.openjdk.org/pipermail/amber-spec-experts/2026-January/004307.html
2•joe_mwangi•2m ago•0 comments

Google Gemini Introduces Personal Intelligence

https://blog.google/innovation-and-ai/products/gemini-app/personal-intelligence/
3•gopkarthik•4m ago•2 comments

Claude is not a senior engineer (yet)

https://www.approachwithalacrity.com/claude-ne/
3•bblcla•4m ago•0 comments

GitHub should charge everyone $1 more per month

https://blog.greg.technology/2025/11/27/github-should-charge-1-dollar-more-per-month.html
4•evakhoury•5m ago•0 comments

China's Hottest App Is a Daily Test of Whether You're Still Alive

https://www.wired.com/story/china-are-you-dead-yet-app/
3•saikatsg•7m ago•0 comments

She made a Facebook comment about her mayor. Then the police arrived

https://www.miamiherald.com/news/local/community/miami-dade/miami-beach/article314310054.html
2•jimt1234•8m ago•0 comments

AI and Robotics in 2026: Unprecedented Development, Unresolved Questions

https://www.bogdandeac.com/peaks-no-27-ai-and-robotics-in-2026-unprecedented-development-unresolv...
2•bg2d•8m ago•0 comments

What It Takes to Send Pixels

https://arewecooked.dev/blog/sending-pixels
2•norcalkc•9m ago•0 comments

Radicle 1.6.0 – Amaryllis

https://radicle.xyz/2026/01/14/radicle-1.6.0
2•zdw•10m ago•0 comments

Show HN: Vibe Pulse – One place to approve all Claude Code operations

https://github.com/hamsterbase/vibe-pulse
3•Cassandra99•11m ago•0 comments

Show HN: Natural language in. Working electronics out. In minutes

https://silixon.io
3•Mihai_•13m ago•0 comments

UK police used Copilot AI "hallucination" when banning football fans

https://arstechnica.com/ai/2026/01/deny-deny-admit-uk-police-used-copilot-ai-hallucination-when-b...
2•duxup•14m ago•1 comments

My First Steps as an Astronaut

https://www.oidaisdes.org/blog/astro-framework-first-steps/
1•speckx•14m ago•0 comments

Show HN: Space Pong

https://pong.priyavkaneria.com/
2•diginova•14m ago•0 comments

Google Gemini will use what it knows about you from Gmail, Search, and YouTube

https://www.theverge.com/news/861576/google-gemini-ai-personal-intelligence-gmail-search-youtube-...
2•jbredeche•16m ago•1 comments

Use of AI to harm women has only just begun, experts warn

https://www.theguardian.com/technology/2026/jan/14/use-of-ai-to-harm-women-has-only-just-begun-ex...
3•pier25•18m ago•0 comments

Epic fined €1.1M over manipulating children through in app purchases

https://nos.nl/artikel/2598157-maker-fortnite-vangt-bot-bij-rechter-moet-boete-betalen-voor-manip...
3•hvb2•18m ago•0 comments

Where 2025's agentic AI hype fell short

https://bytesauna.com/post/2025-ai-hype
1•mapehe•18m ago•1 comments

Show HN: A simple CLI for running ML jobs (or any jobs) with cloud compute

https://o-o.tools/
1•iwantmyhatback•19m ago•0 comments

Show HN: CogDB - Micro graph database for Python

https://cogdb.io/
2•arun1729•20m ago•0 comments

Google Gemini Can Proactively Analyze Users' Gmail, Photos, Searches

https://www.bloomberg.com/news/articles/2026-01-14/google-gemini-s-personalized-intelligence-feat...
1•gotmedium•20m ago•0 comments

Infinite Ball Drop

https://infiniteballdrop.com/
1•bookofjoe•21m ago•0 comments

The AI revolution is here. Will the economy survive the transition?

https://post.substack.com/p/the-ai-revolution-is-here-will-the
2•gmays•22m ago•0 comments

I built Vector. Now I'm answering the question your observability vendor won't

https://usetero.com/blog/the-question-your-observability-vendor-wont-answer
8•binarylogic•23m ago•2 comments

The Invisible Work: What moves projects forward in companies

https://hvpandya.com/invisible-work
1•hvpandya•23m ago•0 comments