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/

Building a baseline JIT for Lua automatically

https://sillycross.github.io/2023/05/12/2023-05-12/
1•fanf2•2m ago•0 comments

Show HN: IssueWhiz – Automated Issue Triaging

https://github.com/pierotofy/issuewhiz
1•pierotofy•2m ago•0 comments

Brazil and US eye rare earths deal

https://www.ft.com/content/401a9e84-3034-4375-bf39-56b92500c7aa
1•alephnerd•3m ago•0 comments

The Discourse Is a Distributed Denial-of-Service Attack

https://www.joanwestenberg.com/the-discourse-is-a-distributed-denial-of-service-attack/
1•7777777phil•5m ago•0 comments

China Will Clinch The AI Race

https://www.ft.com/content/d9af562c-1d37-41b7-9aa7-a838dce3f571
1•karakoram•7m ago•0 comments

What if I lie to maxmind?

1•redditbannedme•7m ago•0 comments

An Artery of Empire: The Rise and Fall of China's Grand Canal

https://worldhistory.substack.com/p/an-artery-of-empire
1•crescit_eundo•8m ago•0 comments

Ask HN: What does your home office look like?

1•chistev•9m ago•0 comments

French diplomacy uses new governement account to troll back on Trump and Elon

https://x.com/FrenchResponse
2•hinata08•11m ago•1 comments

Malicious GhostPoster browser extensions found with 840k installs

https://www.bleepingcomputer.com/news/security/malicious-ghostposter-browser-extensions-found-wit...
1•howToTestFE•12m ago•0 comments

ChatGPT to start showing ads in the US

https://www.theguardian.com/technology/2026/jan/16/chatgpt-ads-in-revenue-boost
1•howToTestFE•13m ago•2 comments

Fastrender: Experimental New Browser Engine

https://github.com/wilsonzlin/fastrender
1•simonpure•13m ago•0 comments

Imgur Is the Last True Internet Culture Remaining – But Can It Survive? (2015)

https://www.mic.com/articles/123956/imgur-s-alan-and-sarah-schaaf-look-to-the-future
1•ubercow13•14m ago•0 comments

Your Agent Skills are all Slop

https://12gramsofcarbon.com/p/your-agent-skills-are-all-slop
1•theahura•16m ago•0 comments

Anthropic, please stop suggesting to use Claude as a linter

https://evgeniipendragon.com/posts/anthropic-please-stop-suggesting-to-use-claude-as-a-linter/
2•EPendragon•18m ago•0 comments

Chinese AI Developers Say They Can't Beat America Without Better Chips

https://www.wsj.com/tech/ai/china-ai-race-us-chips-9e74b957
1•gmays•18m ago•0 comments

Show HN: A terminal for research and trading in prediction markets

https://getpanther.app?src=hnews
1•mkelias•19m ago•0 comments

Evolving brains? Cull long inference times

https://stateofutopia.com/papers/1/evolving-brains-cull-long-inference-times.html
3•logicallee•21m ago•2 comments

Zero-sum economics keeps failing

https://www.noahpinion.blog/p/zero-sum-economics-keeps-failing
2•cjbarber•21m ago•0 comments

"Hello, Computer." Vocal computing seems primed to take off, for real this time

https://spyglass.org/vocal-computing-ai/
2•ChrisArchitect•24m ago•0 comments

Open source NSFW detection (ViT and DistilBERT) with 99% AUC

https://huggingface.co/acaciabengo
1•acaciabengo•26m ago•1 comments

Spectroscopy reveals iron bar inside Ring Nebula

https://academic.oup.com/mnras/article/546/1/staf2139/8425243?login=false
1•bookofjoe•26m ago•0 comments

Show HN: VelinScript 2.5 – A modern language for AI‑API development

https://github.com/SkyliteDesign/velinscript
1•SkyliteDesign•27m ago•1 comments

Radxa Dragon Q6A is an Arm-based single-board PC with Windows and Linux support

https://liliputing.com/radxa-dragon-q6a-is-an-arm-based-single-board-pc-with-windows-and-linux-su...
1•wyldfire•30m ago•0 comments

Claude Is Taking the AI World by Storm, and Even Non-Nerds Are Blown Away

https://www.wsj.com/tech/ai/anthropic-claude-code-ai-7a46460e
13•pretext•31m ago•4 comments

Why the Tech World Thinks the American Dream Is Dying

https://www.wsj.com/tech/ai/why-the-tech-world-thinks-the-american-dream-is-dying-daf793dc
2•Brajeshwar•35m ago•2 comments

Ocean damage nearly doubles the cost of climate change

https://insideclimatenews.org/news/15012026/ocean-damage-nearly-doubles-the-cost-of-climate-change/
3•Brajeshwar•35m ago•0 comments

Meta retreats from metaverse after virtual reality check

https://www.theregister.com/2026/01/16/meta_quest_horizon_workrooms/
7•Brajeshwar•35m ago•0 comments

Beyond the Mordor Economy

https://thehonestsorcerer.substack.com/p/beyond-the-mordor-economy
1•ambientenv•35m ago•0 comments

Fuck subscriptions, bulk email for life using your Gmail API

https://godsend.email
1•Sayuj01•38m ago•0 comments