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/

The Futhark Programming Language

https://futhark-lang.org/
1•mvolfik•44s ago•0 comments

X: About Encrypted Direct Messages

https://help.x.com/en/using-x/encrypted-direct-messages
1•tosh•4m ago•0 comments

Make It Possible, Then Make It Normal

https://danielmangum.com/posts/possible-then-normal/
2•hasheddan•4m ago•0 comments

Advent of Compiler Optimisations 2025

https://xania.org/202511/advent-of-compiler-optimisation
1•hasheddan•5m ago•0 comments

How to Not Get Kidnapped for Your Bitcoin

https://www.nytimes.com/2025/11/17/business/how-to-not-get-kidnapped-for-your-bitcoin.html
1•apples_oranges•5m ago•1 comments

FreeMDU: Open-source Miele appliance diagnostic tools

https://github.com/medusalix/FreeMDU
2•Medusalix•5m ago•0 comments

The case against boolean logic

https://abuseofnotation.github.io/boolean-thinking/
1•boris_m•8m ago•0 comments

Countering the Achievement Society (2018)

https://iai.tv/articles/should-we-rediscover-education-as-leisure-auid-1109
1•robtherobber•11m ago•0 comments

Pangram – AI Detection that works

https://www.pangram.com
1•colesantiago•13m ago•0 comments

Intel's next-gen Granite Rapids-WS server CPU lineup leaked

https://www.tomshardware.com/pc-components/cpus/intels-next-gen-granite-rapids-ws-server-cpu-line...
1•rbanffy•14m ago•0 comments

'Buy Now, Pay Later' is expanding fast, and that should worry everyone

https://techcrunch.com/2025/11/16/bnpl-is-expanding-fast-and-that-should-worry-everyone/
2•01-_-•15m ago•0 comments

Ask HN: What's the Least Amount of Process a Small Team Can Get Away With?

2•_phnd_•16m ago•0 comments

WebAssembly Limitations

https://qouteall.fun/qouteall-blog/2025/WebAsembly%20Limitations
3•qouteall•16m ago•0 comments

Interesting websites I found on the internet

1•01-_-•17m ago•0 comments

Wheels of life dashboard – from my deprecated journaling-via-email project

https://wellbio.vercel.app/dashboard
1•danielfalbo•17m ago•0 comments

White nationalist talking points and racial pseudoscience: welcome to Grokipedia

https://www.theguardian.com/technology/2025/nov/17/grokipedia-elon-musk-far-right-racist
2•n1b0m•18m ago•0 comments

From Napster to Spotify: How Music Piracy Shaped the Subscription Economy

https://subscriptocracy.com/blog/spotify/
1•javipas•18m ago•0 comments

Against Exponential Backoff

https://incoherency.co.uk/blog/stories/against-exponential-backoff.html
1•FergusArgyll•18m ago•0 comments

Google is collecting troves of data from downgraded Nest thermostats

https://www.theverge.com/news/820600/google-nest-learning-thermostat-downgraded-data-collection
2•GiorgioG•19m ago•0 comments

Show HN: Blue Divide – Nurikabe puzzles with procgen islands for Mac and iPad

https://apps.apple.com/us/app/blue-divide-nurikabe/id6752651417
1•chribog•20m ago•0 comments

Live most polluted major city ranking

https://www.iqair.com/world-air-quality-ranking
1•ableal•21m ago•1 comments

Show HN: Learn Docker in your terminal with exercises

https://github.com/furkan/dockerlings
1•furk4n•21m ago•0 comments

Dave's Garage PDP-11 BBS Menu System

https://github.com/davepl/pdpsrc/tree/main/bsd/menu
3•rbanffy•22m ago•0 comments

I Built a Chrome Extension Loved by over 9k Parents

https://www.stuartashworth.com/blog/how-i-built-a-chrome-extension-loved-by-9000-parents/
1•Stoot98•22m ago•0 comments

Tabstack.ai by Mozilla

https://tabstack.ai/
2•calcifer•25m ago•0 comments

AI is guzzling energy for slop content

https://www.theguardian.com/environment/2025/nov/17/ai-climate-crisis-cop30
4•tablets•26m ago•0 comments

Polarized Subtyping [pdf]

https://zee.town/publications/polarized-subtyping
1•azhenley•28m ago•0 comments

US startup Substrate announces chipmaking tool that it says will rival ASML

https://www.msn.com/en-in/news/world/us-startup-substrate-announces-chipmaking-tool-that-it-says-...
3•redwood•30m ago•4 comments

All Your Coworkers Are Probabilistic Too

https://scatterarrow.com/content/en/all-your-coworkers-are-probabilistic.html
3•exagolo•30m ago•3 comments

Show HN: An AI nutrition coach you can text on iMessage/WhatsApp

https://habitsdm.com/jess
1•itaydressler•30m ago•0 comments