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

Comments

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

New York State Death Index

https://newyorkdeathindex.com/
1•toomuchtodo•1m ago•1 comments

An Open-Ended Realistic Simulator for Agents in Physical and Social Worlds

https://simworld.org/
1•gradus_ad•5m ago•0 comments

The mind is not software

https://www.razor.blog/2025/11/your-mind-is-not-software.html
1•razor_blog•8m ago•0 comments

Deep-sea search for Malaysia Airlines Flight 370 to resume Dec. 30

https://apnews.com/article/malaysia-missing-plane-mh370-search-eb0e65b20bf6766dfa1394c58fc6ccbf
1•1659447091•9m ago•0 comments

Cars are steadily becoming longer, wider and heavier in the UK and across Europe

https://www.bbc.com/news/articles/cy7vdvl2531o
2•1659447091•15m ago•0 comments

I Solved Chrome DevTools MCP's Authentication Gap

https://claude.ai/public/artifacts/9944a80b-d768-4ed4-9350-4f48628bb0a4
4•coderrx•17m ago•1 comments

Startups promise to catch bugs in AI-generated software

https://www.ft.com/content/613bf123-b99a-4d18-b6d8-1ab453a8f2c6
1•wwilson•21m ago•0 comments

How can I create a secure Gmail backup without losing formatting or attachments?

https://www.mailsdaddy.com/gmail-backup-tool/
1•carlosjames•24m ago•1 comments

How can I create a secure Gmail backup without losing attachments?

1•carlosjames•25m ago•0 comments

Political anthropologist says military buildup won't bring economic boon to Guam

https://www.guampdn.com/news/political-anthropologist-says-military-buildup-will-not-bring-econom...
1•sipofwater•27m ago•1 comments

Indian Airports Targeted by GPS Spoofing Cyber Attack

https://www.cybersecurity-insiders.com/indian-airports-targeted-by-gps-spoofing-cyber-attack/
2•sbmthakur•28m ago•0 comments

UOG professor talks about nature of corruption

https://www.guampdn.com/news/uog-professor-talks-about-nature-of-corruption/article_5d30b622-022b...
1•sipofwater•32m ago•1 comments

How Should We Peer Review Software?

https://mirawelner.com/posts/peer_review.html
1•zdw•36m ago•0 comments

Artificial Intelligence and the Future of Policing

https://policeandsecuritynews.com/2025/10/28/artificial-intelligence-and-the-future-of-policing/
1•measurablefunc•36m ago•0 comments

Sending DMARC reports is somewhat hazardous

https://utcc.utoronto.ca/~cks/space/blog/spam/DMARCSendingReportsProblems
2•zdw•36m ago•0 comments

Show HN: Beads Viewer (Bv)

https://github.com/Dicklesworthstone/beads_viewer
1•eigenvalue•37m ago•0 comments

Show HN: YAML2MCP

https://marketplace.visualstudio.com/items?itemName=adefemi171.yaml2mcp
1•tha_infra_guy•39m ago•0 comments

Show HN: Coding Agent Session Search (Cass)

https://github.com/Dicklesworthstone/coding_agent_session_search
1•eigenvalue•41m ago•0 comments

Avoiding space leaks at all costs

https://chshersh.com/blog/2022-08-08-space-leak.html
1•todsacerdoti•41m ago•0 comments

Show HN: Glovio – Localize app store listings without spreadsheets

https://glovio.in/
1•saasnap•46m ago•0 comments

Google-backed fusion group moves to commercialise neutral-beam technology

https://www.ft.com/content/5ce71dfd-7ebe-4030-a5d5-ab68d84ab272
2•perihelions•49m ago•0 comments

Ask HN: Describe your first enterprise sale

2•faizshah•54m ago•0 comments

Show HN: HCB – Nonprofit financial app processing $6M/month

https://hackclub.com/fiscal-sponsorship/
4•garyhtou•55m ago•1 comments

ChatGPT is leaking unhashed PII in network traffic

https://twitter.com/xw33bttv/status/1993590066397298886
2•Jimmc414•57m ago•0 comments

OpenLog: Open-source Hardware Datalogger from UART serial port to SD card

https://github.com/sparkfun/OpenLog
1•walterbell•1h ago•0 comments

Gerschgorin Disks and Brauer's ovals of Cassini (2014)

https://bwlewis.github.io/cassini/
1•RossBencina•1h ago•1 comments

Interview with RollerCoaster Tycoon's Creator, Chris Sawyer (2024)

https://medium.com/atari-club/interview-with-rollercoaster-tycoons-creator-chris-sawyer-684a0efb0f13
2•areoform•1h ago•0 comments

Testing and Benchmarking of AI Compilers

https://www.broune.com/blog/testing-and-benchmarking-of-ai-compilers
1•kishoreganesh•1h ago•0 comments

Things I learned about climate in 2025

https://climatedrift.substack.com/p/52-things-i-learned-about-climate
3•JoiDegn•1h ago•0 comments

Coupang Conquered South Korean E-commerce

https://quartr.com/insights/edge/how-coupang-conquered-south-korean-ecommerce
1•mgh2•1h ago•0 comments