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

Comments

bastawhiz•6mo ago
Is this a problem that people actually have?
xeromal•6mo ago
Fun side project man!
primitivesuave•6mo 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•6mo 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•6mo 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/

Opus 4.5 is the best model for RAG

https://agentset.ai/blog/opus-4.5-eval
1•tifa2up•28s ago•0 comments

The Great Downzoning

https://worksinprogress.co/issue/the-great-downzoning/
1•ortegaygasset•1m ago•0 comments

Auto-save feature added for buildsheet.one

https://buildsheet.one
1•usegrand•1m ago•0 comments

Erdoğan rings alarm bells on demographic crisis

https://www.dailysabah.com/politics/erdogan-rings-alarm-bells-on-demographic-crisis/news
1•bookofjoe•3m ago•0 comments

Four Ways AI Is Being Used to Strengthen Democracies Worldwide

https://www.schneier.com/blog/archives/2025/11/four-ways-ai-is-being-used-to-strengthen-democraci...
1•speckx•4m ago•0 comments

IKEA's colorful new Bluetooth speakers

https://www.theverge.com/news/827516/ikea-bluetooth-speaker-solskydd-kulglass-lamp-spotify-tap
1•HelloUsername•4m ago•0 comments

Volatile Infrastructure is worse than volatile applications

https://www.draketo.de/software/volatile-infrastructure
1•pantalaimon•4m ago•0 comments

Show HN: Dnd Character Creator

https://dndcharactercreator.art
1•ethanYIAI•4m ago•0 comments

All Programming Languages Are Fast

https://orgpad.info/blog/all-programming-langs-are-fast
1•vlr•7m ago•0 comments

Show HN: PoliSciPy – A Python library for making Electoral College maps

https://github.com/poliscipy/poliscipy
1•quantumHashMap•8m ago•0 comments

Let your code be brutally analyzed with AI

https://roastmycode.idealane.app/
2•federiconbo•10m ago•0 comments

Ask HN: Should account creation/origin country be displayed on HN profiles?

1•megraf•11m ago•1 comments

The signs of educational decline are now impossible to ignore

https://www.washingtonpost.com/opinions/2025/11/23/high-school-students-college-preparation/
3•mhb•11m ago•1 comments

Chatbot Psychosis

https://en.wikipedia.org/wiki/Chatbot_psychosis
2•tokai•12m ago•1 comments

The Emoji Museum from 1981 – 2025

https://emojistime.com/museum
1•RandomDailyUrls•13m ago•0 comments

Brain has five 'eras' – with adult mode not starting until early 30s

https://www.theguardian.com/science/2025/nov/25/brain-human-cognitive-development-life-stages-cam...
1•hackernj•13m ago•0 comments

Netscape and Microsoft Redux?

https://avc.xyz/netscape-and-microsoft-redux
1•wslh•13m ago•0 comments

X's new location feature exposed big US politics accounts

https://www.bbc.co.uk/news/articles/cj38m11218xo
1•ljf•14m ago•0 comments

Post Quantum secure your Rust programs

https://blog.rust.careers/post/quantum_safe_rust_cryptography/
1•gavide•15m ago•0 comments

N-Body Simulator – Interactive 3 Body Problem and Gravitational Physics

https://trisolarchaos.com/?pr=lagrange&n=3&s=5.0&so=0.01&im=verlet&dt=5.00e-4&rt=1.0e-6&at=1.0e-8...
1•speckx•16m ago•0 comments

Babylon.js – Web-Based 3D at It's Best

https://www.babylonjs.com
1•tyleo•16m ago•1 comments

Modern JavaScript for Django, Part 3: Adding Vite, React, and Tailwind

https://www.saaspegasus.com/guides/modern-javascript-for-django-developers/integrating-javascript...
2•rob•17m ago•0 comments

Spare Time

https://jila.colorado.edu/news-events/articles/spare-time
1•jadedtuna•18m ago•0 comments

Shape of Reddit – Visualize conversations evolve in different subreddits

https://shapeofreddit.com/today
1•pbshgthm•19m ago•1 comments

Solo Building

https://solobuilding.com
1•mddanishyusuf•19m ago•0 comments

Energy Dept Launches 'Genesis Mission' to Transform American Science Through AI

https://www.energy.gov/articles/energy-department-launches-genesis-mission-transform-american-sci...
1•ndsipa_pomu•21m ago•1 comments

Fuzzing as the basis for effective development a case study of LuaJIT [video]

https://www.youtube.com/watch?v=GwHZaynqh98
1•ligurio•27m ago•0 comments

Can AI write accessibility specs?

https://gerireid.com/blog/can-ai-write-accessibility-specs/
1•speckx•28m ago•0 comments

I used free AIs to build a 100% local investigative platform in days (no coding)

https://github.com/mantisfury/ArkhamMirror
1•ArkhamMirror•28m ago•2 comments

Show HN: Loglast – Track the last time you did X

https://loglast.app
2•oliverkzh•31m ago•0 comments