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/

Resources for Protecting Against 'React2Shell'

https://vercel.com/blog/resources-for-protecting-against-react2shell
1•lortex•51s ago•0 comments

Wave of (Open Street Map) Vandalism in South Korea

https://www.openstreetmap.org/user/KennyDap/diary/407844
2•shortrounddev2•4m ago•0 comments

Pipetap: A Windows Named Pipe Multi-Tool / Proxy

https://github.com/sensepost/pipetap
1•leonjza•6m ago•0 comments

ReVSeg: Incentivizing the Reasoning Chain for Video Segmentation with RL

https://arxiv.org/abs/2512.02835
1•SweetSoftPillow•6m ago•0 comments

Quick takes on the Dec 5 Cloudflare outage

https://surfingcomplexity.blog/2025/12/06/quick-takes-on-the-dec-5-cloudflare-outage/
1•gpi•7m ago•0 comments

Photographer Built a Medium-Format Rangefinder, and So Can You

https://petapixel.com/2025/12/06/this-photographer-built-an-awesome-medium-format-rangefinder-and...
1•shinryuu•9m ago•0 comments

Beauty and the feast: Effect of beauty on earnings using restaurant tipping data

https://ideas.repec.org/a/eee/joepsy/v49y2015icp34-46.html
2•mhb•11m ago•0 comments

United States Antarctic Program Field Manual (2024) [pdf]

https://www.usap.gov/usapgov/travelAndDeployment/documents/Continental-Field-Manual-2024.pdf
1•SheinhardtWigCo•12m ago•0 comments

Automating Organic Synthesis

https://www.rowansci.com/blog/automating-organic-synthesis-onepot
1•sethbannon•13m ago•0 comments

Show HN: ElfReview – Face detection meets corporate satire for Christmas

https://elfreview.com
1•shoarek•13m ago•0 comments

Do you have short attention span? Check our productivity tool, it might help you

https://dashzz.com
2•razvanbord•19m ago•0 comments

Show HN: Quantum4J–deterministic quantum SDK with OpenQASM and JVM integration

1•vijayanandg•20m ago•0 comments

Two concepts that compress psychology, behavior, and emotion

https://martinlichstam.substack.com/p/the-geometry-of-everything
1•bosmanos•20m ago•0 comments

WebCraft: A C++ 23 async based networking library (which does not use Boost)

2•raoa32•21m ago•0 comments

Show HN: Mocksy – a lightweight macOS app to mock API endpoints locally

https://mocksy.zaltysworks.com/
1•zawo•22m ago•0 comments

Show HN: MyChefGPT – Don't know what to cook? Your fridge knows

https://mychefgpt.com
1•ebastiban•24m ago•0 comments

Who earns a higher salary than you and the jobs they work

https://flowingdata.com/2025/12/02/who-makes-a-higher-salary-and-the-jobs-they-work/
2•delichon•25m ago•0 comments

Catala – Law to Code

https://catala-lang.org
1•Grognak•27m ago•0 comments

Show HN: Salary Calculator Spain

https://lareira-digital.github.io/calculadorasalario/
2•oscarcp•28m ago•4 comments

Invader: Where to Spot the 8-Bit Street Art in London

https://londonist.com/london/art-and-photography/invader-where-to-spot-the-8-bit-street-art-in-lo...
2•zeristor•28m ago•1 comments

Show HN: Subseq.bio – A Simple Web and API Service for Protein Design

https://subseq.bio/programs
1•oxpsi•31m ago•0 comments

Chernobyl protective shield can no longer confine radiation after drone strike

https://www.cnn.com/2025/12/06/europe/chernobyl-drone-strike-radiation-latam-intl
2•vinnyglennon•32m ago•0 comments

Targeted Model Editing

https://www.gojiberries.io/concept-subspaces-for-targeted-model-editing/
1•neehao•33m ago•0 comments

Apex: Universal Markdown Processor

https://brettterpstra.com/2025/12/06/introducing-apex-universal-markdown-processor/
2•zdw•36m ago•1 comments

A Chinese-backed port could push the Amazon Rainforest over the edge

https://insideclimatenews.org/news/01122025/china-port-in-peru-impact-on-amazon-rainforest/
1•chha•36m ago•0 comments

LLMs Are Lexical Thijarians

https://vinayprabhu.substack.com/p/llms-as-lexical-thijarians
2•VinayUPrabhu•38m ago•0 comments

My Problem with Hacklore (WiFi)

https://thecontractor.io/hacklore/
1•splintersio•42m ago•1 comments

How the 'hypnagogic state' of drowsiness could enhance your creativity

https://theconversation.com/how-the-hypnagogic-state-of-drowsiness-could-enhance-your-creativity-...
4•zeristor•43m ago•0 comments

Screenshots from developers: 2002 vs. 2015 (2015)

https://anders.unix.se/2015/12/10/screenshots-from-developers--2002-vs.-2015/
2•turrini•44m ago•0 comments

Copy-Item is 27% slower than File Explorer

https://til.andrew-quinn.me/posts/copy-item-is-27-percent-slower-than-file-explorer-drag-and-drop...
10•hiAndrewQuinn•44m ago•3 comments