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

Comments

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

Enterprises Are Rethinking Kubernetes

https://www.infoworld.com/article/4161056/enterprises-are-rethinking-kubernetes.html
1•milkglass•1m ago•0 comments

Talk a stranger for fun or everything else

https://bakbak.fun/
2•chintan39•13m ago•1 comments

The West Forgot How to Make Things. Now It's Forgetting How to Code

https://techtrenches.dev/p/the-west-forgot-how-to-make-things
2•milkglass•16m ago•1 comments

The Coding Assistant Breakdown: More Tokens Please

https://newsletter.semianalysis.com/p/the-coding-assistant-breakdown-more
1•gmays•17m ago•0 comments

WTF Are Metaballs?

https://www.youtube.com/watch?v=LW03EEKjy9o
2•gdubs•18m ago•1 comments

Iran war hits Dubai chocolate pistachio supplies

https://www.ft.com/content/438ef32a-59e5-41b3-a0da-569716385347
1•KnuthIsGod•26m ago•0 comments

CO operating system age-verification open-source exemption doesn't include Linux

https://twitter.com/LundukeJournal/status/2048199650117554678
2•gasull•28m ago•0 comments

Why Rome Never Industrialized [video]

https://www.youtube.com/watch?v=uR8-AF6NJcc
2•Khaine•41m ago•1 comments

A Taiwanese Vestige in the Geedge Supply Chain

https://interseclab.org/research/madlink-a-taiwanese-vestige-in-the-geedge-supply-chain/
3•gslin•47m ago•0 comments

Show HN: Implit – Catch fake AI-generated dependencies

https://github.com/build-neurall/implit
1•neurall-build•51m ago•0 comments

Modern, Simple, Web Framework in C. REST, Templates, SSL, Metrics

https://github.com/briandowns/libpapago
1•ieska328•55m ago•0 comments

Rootless virtual machines with KVM and QEMU (2024)

https://developers.redhat.com/articles/2024/12/18/rootless-virtual-machines-kvm-and-qemu
1•adityaathalye•1h ago•0 comments

A suspect is in custody after Trump is rushed from correspondents' dinner

https://www.npr.org/2026/04/25/nx-s1-5799544/trump-white-house-correspondents-dinner
6•qmr•1h ago•0 comments

The American Wealth Curve: How the Gap Widens 8x Between Age 25 and 65

https://efficientdollar.com/blog/wealth-curve-by-age/
4•lundj•1h ago•0 comments

Aube – a fast Node.js package manager

https://aube.en.dev
1•microflash•1h ago•0 comments

How to train your brain to see possibility instead of doom

https://www.theguardian.com/books/2026/apr/19/how-to-train-your-brain-to-see-possibility-instead-...
3•1659447091•1h ago•0 comments

Revocation

https://www.potaroo.net/ispcol/2026-04/revocation.html
1•aragilar•1h ago•0 comments

First Paid Subscribers on Mymarks.net

https://mymarks.net/
2•shozzipen•1h ago•0 comments

Simple Sabotage of Agents

https://alexschroeder.ch/view/2026-03-12-agent-sabotage
1•Tallain•1h ago•0 comments

AGPLv3§74 Empowers Users to Thwart Badgeware Like OnlyOffice

https://sfconservancy.org/blog/2026/apr/16/badgeware-onlyoffice-nextcloud-affero-gpl/
39•pabs3•1h ago•2 comments

I Got 122 World Records to Prove a Point [video]

https://www.youtube.com/watch?v=mVH7OPx4QZU
1•reader9274•1h ago•0 comments

French tax official sold crypto investors' addresses: kidnappings followed

https://twitter.com/MarioNawfal/status/2047773069607854512
4•MrBuddyCasino•1h ago•0 comments

Stt.ai MCP Server

https://pypi.org/project/sttai-mcp/0.1.0/
1•nadermx•1h ago•0 comments

Consumer routers hacked by Russia's military

https://arstechnica.com/security/2026/04/russias-military-hacks-thousands-of-consumer-routers-to-...
1•pabs3•1h ago•0 comments

What are some unforeseen / elusive edge cases you have seen in your career?

https://www.reddit.com/r/ExperiencedDevs/s/FIQYb1Fg8x
2•rainhacker•1h ago•0 comments

Show HN: Browse GitHub repos in Emacs without cloning

https://github.com/agzam/remoto.el
7•iLemming•2h ago•5 comments

Maine's governor vetoes data center moratorium

https://techcrunch.com/2026/04/25/maines-governor-vetoes-data-center-moratorium/
1•SilverElfin•2h ago•0 comments

All About USB-C: Resistors and Emarkers (2023)

https://hackaday.com/2023/01/04/all-about-usb-c-resistors-and-emarkers/
2•walterbell•2h ago•0 comments

I asked my local LLM to add 23 numbers and got seven wrong answers

https://viggy28.dev/article/local-llm-seven-wrong-answers/
3•vira28•2h ago•2 comments

Godot 4.7 Beta with HDR Output, Ray-Tracing Improvements and Editor Enhancements

https://www.phoronix.com/news/Godot-4.7-Beta
11•shpat•2h ago•1 comments