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•7mo 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•7mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Reddit, but with multiple LLM agents, works locally

1•huydotnet•2m ago•0 comments

Listing gaming on your resume might hurt your job prospects

https://www.psypost.org/listing-gaming-on-your-resume-might-hurt-your-job-prospects/
2•ivewonyoung•3m ago•0 comments

Deep Dive into Behringer's X32 – From FPGA to SharcDSP

https://www.youtube.com/watch?v=c5jjBm8EPsg
1•crmd•4m ago•1 comments

It's time for WA to ban cellphones in schools statewide at last

https://www.seattletimes.com/opinion/its-time-for-wa-to-ban-cellphones-in-schools-statewide-at-last/
1•ronbenton•5m ago•0 comments

Show HN: Matchstick Puzzle Game in the Browser

https://matchmath.pages.dev/
1•prettyblocks•6m ago•0 comments

Segue – Illustrated Vocabulary Builder

https://segue.app
1•stoicfungi•6m ago•0 comments

How Smell Guides Our Inner World

https://www.quantamagazine.org/how-smell-guides-our-inner-world-20250703/
2•anarbadalov•8m ago•0 comments

Customs: Council agrees to levy customs duty on small parcels as of 1 July 2026

https://www.consilium.europa.eu/en/press/press-releases/2025/12/12/customs-council-agrees-to-levy...
1•sva_•8m ago•0 comments

Entry-level AI job displacement

https://www.yahoo.com/news/articles/stanford-graduates-spark-outrage-uncovering-000500857.html
2•nomagicbullet•14m ago•1 comments

Love Letters to Writers and LLMs

https://blog.tdhttt.com/post/love-letters-to-writers-and-llms/
1•tdhttt•24m ago•0 comments

Superfest

https://en.wikipedia.org/wiki/Superfest
2•josephcsible•25m ago•0 comments

Wii Reinforcement Learning

https://github.com/VIPTankz/Wii-RL
1•arvindh-manian•26m ago•0 comments

Show HN: KRR v2.1 – A deterministic, reversible romanization system for Hangul

https://github.com/R8dymade/krr-2.1
2•R8dymade•28m ago•1 comments

Vacuum legend Dreame teases 1,000+ HP EV

https://www.notebookcheck.net/Vacuum-legend-Dreame-teases-1-000-HP-EV-spinning-its-record-fast-el...
1•thunderbong•28m ago•0 comments

Show HN: Claude Life Assistant – AI accountability partner for Claude Code

https://github.com/lout33/claude_life_assistant
2•lout332•30m ago•0 comments

Why your early 2000s photos are probably lost forever

https://www.bbc.com/future/article/20251212-why-your-early-2000s-photos-are-probably-lost-forever
2•slyall•31m ago•0 comments

Validating kiwi (AI design critique w personas) – looking for builder feedback

3•brandonlees•32m ago•0 comments

Gmail to Let Users Change Their Addresses While Keeping Data

https://www.nytimes.com/2025/12/28/technology/gmail-change-address-email.html
1•absqueued•39m ago•3 comments

Rust based Viewer: Any document, any platform, in milliseconds

https://github.com/abahjat/Prism
3•abahjat•40m ago•0 comments

AI Contributions to Erdős Problems

https://github.com/teorth/erdosproblems/wiki/AI-contributions-to-Erd%C5%91s-problems
3•tzury•57m ago•0 comments

Why I Think Valve's Retiring the Steam Deck LCD

https://gardinerbryant.com/why-valves-retiring-the-steam-deck-lcd/
6•Ariarule•1h ago•5 comments

Build a dinosaur runner game with Deno

https://deno.com/blog/build-a-game-with-deno-1
3•RyanShook•1h ago•0 comments

Fast GPU Interconnect over Radio

https://spectrum.ieee.org/rf-over-fiber
4•montroser•1h ago•0 comments

Fix Logs Analytics

1•hyehudai•1h ago•0 comments

Hydraulic press flips coin onto its edge on the 11,175th flip after 147 hours

https://www.twitch.tv/hydraulicpresschannel/clip/OilySmallKaleGivePLZ-FxxqhF85A1s_55Nv
9•ivewonyoung•1h ago•0 comments

Demystifying DVDs

https://hiddenpalace.org/News/One_Bad_Ass_Hedgehog_-_Shadow_the_Hedgehog#Demystifying_DVDs
5•boltzmann-brain•1h ago•1 comments

What's Wrong with the West?

https://spectator.com/article/whats-wrong-with-the-west/
2•barry-cotter•1h ago•0 comments

Starlight Spotlight: A Hospital Wii in a New Light

https://dolphin-emu.org/blog/2025/11/14/starlight-spotlight/
2•bombcar•1h ago•0 comments

State Ofthe Art Novel InFlow 1Gearturbine/Reaction 2Imploturbocompressor/Impulse

1•monterrey•1h ago•0 comments

Xous: A pure Rust rethink of the embedded operating system (39c3) [video]

https://media.ccc.de/v/39c3-xous-a-pure-rust-rethink-of-the-embedded-operating-system
2•sxzygz•1h ago•0 comments