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/

Open-source security auditors for Supabase, Strapi, Hasura and Ollama

https://github.com/Perufitlife/awesome-backend-security
1•renzomad•4m ago•0 comments

Nonstop Trading, Lots of Leverage. How 'Perp Futures' Are Changing Wall Street

https://www.wsj.com/finance/commodities-futures/nonstop-trading-loads-of-leverage-how-perp-future...
2•JumpCrisscross•8m ago•0 comments

Reddit account history viewer, even for deleted posts

https://deletedby.com
2•Mobile-Spread•11m ago•1 comments

The System Moved On, but It Didn't Forget

https://webmnem.here.now/system-moved-on-but-it-didnt-forget/
1•InfraStack•14m ago•0 comments

The AI Tarpit: Why You Can't Stop Reading Your Code

https://www.williamangel.net/blog/2026/06/22/The-AI-Tarpit-Why-You-Cant-Stop-Reading-Your-Code.html
1•datadrivenangel•16m ago•0 comments

I Bought the Trump Phone [video]

https://www.youtube.com/watch?v=b1ytw85Npt8
3•billfor•17m ago•0 comments

Show HN: A 3D world you grow from your phone's camera flash

https://phronesis.world/similar
3•degibug•20m ago•0 comments

King's study finds AI chose nuclear signalling in 95% of simulated crises

https://www.kcl.ac.uk/news/artificial-intelligence-under-nuclear-pressure-first-large-scale-kings...
1•totetsu•21m ago•1 comments

Man used massage gun on his tired eyeballs. It went as well as you'd expect

https://arstechnica.com/health/2026/06/man-used-massage-gun-on-his-tired-eyeballs-it-went-as-well...
4•canucker2016•24m ago•3 comments

Ask HN: Has Codex gotten slower recently?

4•aurenvale•25m ago•0 comments

Show HN: ExtensionBooster – Get real human reviews for your apps

https://extensionbooster.net/
3•quangpl•25m ago•1 comments

How I made the firewood splitting simulator

https://old.reddit.com/r/vibecoding/comments/1uckug1/heres_how_i_made_the_firewood_splitting_simu...
3•thunderbong•27m ago•0 comments

Show HN: Loft gives thumb-keys and split-layout on a standard laptop or keyboard

https://loftkeyboard.com
4•RuleOfBirds•28m ago•0 comments

Prompt Preflight – catch vague AI-agent prompts before they burn tokens

https://github.com/akg268/prompt-preflight/
2•akg268•29m ago•0 comments

Chain-of-Trust with AI

https://marirs.net.in/cot/
2•sriramster•30m ago•1 comments

Show HN: I scanned every YC Spring 2026 startup for what AI crawlers see

https://potatometer.com/blog/yc-spring-2026-ai-reach-vs-readability
2•apswin•38m ago•0 comments

AWS Lambda MicroVMs for isolated execution of user and AI-generated code

https://aws.amazon.com/about-aws/whats-new/2026/06/aws-lambda-microvms/
9•leemoore•40m ago•2 comments

HR consultant wins English court case using AI lawyer in apparent legal first

https://www.theguardian.com/technology/2026/jun/22/artificial-intelligence-law-firm-wins-court-ca...
3•mellosouls•42m ago•0 comments

How to be a `web' `designer' (1999)

https://chris.ex-parrot.com/design.html
4•DASD•45m ago•0 comments

Zhipu AI Surges Past Trillion Yuan Market Cap in China's AI Boom

https://asiaai.fyi/zhipu-ai-surges-past-trillion-yuan-market-cap-in-chinas-ai-boom/
6•dweisinger•45m ago•0 comments

Zombie unicorns are haunting Silicon Valley

https://economist.com/business/2026/06/21/zombie-unicorns-are-haunting-silicon-valley
3•pseudolus•45m ago•1 comments

The Secret Reason Bosses Want Everyone Back in the Office, Every Day: Narcissism

https://www.nytimes.com/2026/06/22/opinion/office-work-wfh-bosses.html
5•mmooss•46m ago•2 comments

Ultralytics YOLO26: Unified Real-Time End-to-End Vision Models

https://arxiv.org/abs/2606.03748
4•teleforce•50m ago•0 comments

Lies, Damn Lies and Database Benchmarks

https://questdb.com/blog/lies-damn-lies-and-database-benchmarks/
2•eigenBasis•51m ago•0 comments

DeepSeek Just Solved AI's Billion Dollar Problem [video]

https://www.youtube.com/watch?v=mG4SmhWyeFA
3•lobo_tuerto•51m ago•1 comments

Terminal coding agent powered by Kimchi's multi-model orchestration

https://github.com/getkimchi/kimchi
3•doanbactam•52m ago•0 comments

Show HN: ShipFast – Deploy any project to production with one command

https://xiaohou2503687-design.github.io/shipfast-oss/
2•shipfastcli•58m ago•0 comments

WaterToGo – JavaScript/TS/Python/Rust Codebases to Go

https://github.com/StellariumFoundation/WaterToGo
2•john_victor•1h ago•0 comments

Lopo Programming Language – A lightweight scripting language with clean syntax

https://github.com/dominexmacedon-docs/lopo-docs
3•dominex•1h ago•0 comments

Counter-Strike – a billion-dollar game built in a dorm room [video]

https://www.youtube.com/watch?v=tLB8J3CrlO0
2•coolwulf•1h ago•0 comments