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

Greek Alphabet Cards

https://labs.randomquark.com/alphabet_cards/
1•ricochet11•1m ago•0 comments

On Road to Canterbury-Reading Dan Simmons Sci-Fi Adaptation of Chaucer's Classic

https://lithub.com/on-the-road-to-canterbury-reading-dan-simmons-sci-fi-adaptation-of-chaucers-cl...
1•pseudolus•3m ago•0 comments

Keepithub – Physical-world geo-referenced memory for AI agents (B2A marketplace)

https://keepithub.com/launch.html`
1•keepithub•3m ago•0 comments

'A' grades are suddenly everywhere since the arrival of ChatGPT

https://www.msn.com/en-us/money/careersandeducation/a-grades-are-suddenly-everywhere-since-the-ar...
1•pseudolus•8m ago•0 comments

Why the US Can't Adopt Ukraine's Innovative Approach to Unmanned Warfare Systems

https://www.techdirt.com/2026/05/15/why-the-us-cant-adopt-ukraines-innovative-approach-to-unmanne...
1•beardyw•9m ago•0 comments

Chatbots' Downward Spiral

https://cacm.acm.org/news/chatbots-downward-spiral/
1•pseudolus•9m ago•0 comments

Prepare for an AI Jobs Apocalypse

https://www.economist.com/leaders/2026/05/14/prepare-for-an-ai-jobs-apocalypse
2•wiseowise•9m ago•0 comments

TokenBBQ – track AI coding token usage across Claude, Codex, Gemini

https://github.com/offbyone1/tokenbbq
1•TokenBBQ•9m ago•0 comments

The Infinite Power Grid Won't Be Built with Today's Lasers FusionEnergy

https://beeble.com/en/blog/the-infinite-power-grid-won-t-be-built-with-today-s-lasers
1•odysseyk•10m ago•0 comments

Europe built sovereign clouds to escape US control. Forgot about the processors

https://www.theregister.com/systems/2026/05/16/europe-built-sovereign-clouds-to-escape-us-control...
3•beardyw•11m ago•0 comments

Show HN: Let's build Claude Code from scratch (tutorial)

https://www.youtube.com/watch?v=8pDfgBEy8bg
1•CohleM•12m ago•0 comments

Anecdotal Definitions of Success

https://nafe.es/writing/success/
3•mnafees•13m ago•0 comments

Designing, Refining, and Maintaining Agent Skills at Perplexity

https://research.perplexity.ai/articles/designing-refining-and-maintaining-agent-skills-at-perple...
1•Garbage•13m ago•0 comments

Accelerando (2005)

https://www.antipope.org/charlie/blog-static/fiction/accelerando/accelerando.html
3•eamag•18m ago•0 comments

OpenClaw Creator Spent $1.3M on OpenAI Tokens in 30 Days

https://twitter.com/steipete/status/2055346265869721905
3•eamag•20m ago•0 comments

Zero: The Programming Language for Agents

https://github.com/vercel-labs/zero
1•0xCAP•22m ago•0 comments

Products are out, brains are in

https://mrmarket.bearblog.dev/products-are-out-brains-are-in-new/
3•seltzerboys•23m ago•0 comments

Education Imflation

1•DeeNye•25m ago•0 comments

The One-Person Unicorn: Build Your SaaS Without Writing Code

https://travel4fun4u1.substack.com/p/you-dont-need-a-developer-in-2026
1•Travel4Fun4U•25m ago•1 comments

Inverse Sapir-Whorf and programming languages

https://lukeplant.me.uk/blog/posts/inverse-sapir-whorf-and-programming-languages/
1•birdculture•28m ago•0 comments

List of known personal websites that host Wander, a tool to wander the small web

https://susam.codeberg.page/wcn/
1•susam•28m ago•0 comments

How Claude Code works in large codebases – breakdown

https://stackjudge.io/reviews/claude-code-enterprise-review-2026
1•StackJudge•32m ago•0 comments

The Hungry Businessman

https://avocadoslaw.substack.com/p/the-hungry-businessman
1•m-aish•36m ago•0 comments

A few ways of specifying per-theme colours in only CSS

https://chrismorgan.info/css-themed-colours
2•chrismorgan•38m ago•0 comments

I spawn random interests and I don't know why

https://ssenthilnathan3.github.io/blog/spawning-random-interests/
1•nathaah3•40m ago•0 comments

The Math of Chip-Firing [pdf]

https://www.dam.brown.edu/people/cklivans/Chip-Firing.pdf
1•soupspaces•41m ago•0 comments

The delicate choreography of the Trump-Xi state dinner

https://www.reuters.com/graphics/CHINA-US/STATE-DINNER/lgpdgbdyovo/
1•giuliomagnifico•43m ago•0 comments

Trump warns Taiwan not to expect blank check from US Military after Xi summit

https://www.foxnews.com/media/trump-warns-taiwan-expect-blank-check-us-military-intense-xi-summit
3•maxloh•43m ago•4 comments

Study: Single dose of psilocybin provided rapid relief from depression

https://news.ki.se/single-dose-of-psilocybin-provided-rapid-relief-from-depression-in-new-study
1•giuliomagnifico•52m ago•0 comments

Agent Behavioral Contracts

https://arxiv.org/abs/2602.22302
1•reiter•52m ago•0 comments