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/

Show HN: Radioactive Pooping Knights

https://minichessgames.com/#/play/pooping-knights
1•patrickdavey•3m ago•0 comments

Mock Roles, not Objects (2004) [pdf]

https://jmock.org/oopsla2004.pdf
1•n3t•3m ago•0 comments

I cracked a $200 software protection with xcopy

https://www.ud2.rip/blog/enigma-protector/
1•vmfunc•9m ago•1 comments

New Study Investigates How Diet May Slow Normal Brain Aging

https://www.bumc.bu.edu/camed/news-events/articles/2025/new-study-investigates-how-diet-may-slow-...
1•gslin•9m ago•0 comments

EU hits X with €120M fine for breaching the Digital Services Act

https://www.dw.com/en/eu-imposes-120-million-fine-on-elon-musks-x-for-breaking-digital-rules/a-75...
2•vincvinc•15m ago•0 comments

Windows Telemetry

https://sizeof.cat/post/windows-telemetry/
1•DustinEchoes•16m ago•0 comments

India backs off from requiring government-made security app

https://www.scworld.com/news/india-backs-off-from-requiring-government-made-security-app
1•Bender•21m ago•1 comments

Sandvik gets €500M from European Investment Bank for new, smart EVs

https://electrek.co/2025/12/05/sandvik-gets-e500m-from-european-investment-bank-for-new-smart-evs/
1•Bender•21m ago•0 comments

Ultrablack wool textiles inspired by hierarchical avian structure

https://www.nature.com/articles/s41467-025-65649-4
2•defrost•29m ago•1 comments

Five hundred reasons to not use Microsoft Azure

https://azsh.it/500
3•bsoqqb•35m ago•0 comments

State of decay in self-hosted commenting (code review)

https://bykozy.me/blog/state-of-decay-in-self-hosted-commenting/
1•byko3y•43m ago•0 comments

HTML Kong (2016)

https://www.xn--8ws00zhy3a.com/blog/2016/07/html-kong#f16.1
1•mmulet•43m ago•1 comments

DeslopifAI – Remove AI Slop

4•haeli05•52m ago•0 comments

Show HN: NanoAI – Unified AI Image Workspace (Generation, Inpainting, Upscaling)

https://nanoai.run
1•Li_Evan•52m ago•0 comments

Show HN: macOS Window Managers Directory

https://macoswm.com/
1•j0r0b0•57m ago•0 comments

Ask HN: What is the future of SaaS when things are this easy to build?

2•fbrncci•57m ago•0 comments

Making WebAssembly and Wasmtime More Portable (2024)

https://bytecodealliance.org/articles/wasmtime-portability
2•apitman•57m ago•0 comments

Data Centers Are a 'Gold Rush' for Construction Workers

https://www.wsj.com/business/data-centers-are-a-gold-rush-for-construction-workers-6e3c5ce0
1•lxm•57m ago•0 comments

A 2,500-year lineage of daemon-like naming conventions, from antiquity to AI

2•troyka•59m ago•0 comments

Mark Zuckerberg rebranded for metaverse. $70B in losses, he's moving on

https://fortune.com/2025/12/05/mark-zuckerberg-metaverse-layoffs-cuts-facebook-rebrand/
3•nsoonhui•59m ago•3 comments

Purpose from First Principles

https://planktonvalhalla.com/20251204-purpose-from-first-principles/
1•mrcgnc•1h ago•0 comments

Hitachi Cooling and Heating Innovations with Heat Pump Tech at AHR 2025 [video]

https://www.youtube.com/watch?v=tkxiW5kd7Xc
1•teleforce•1h ago•0 comments

Hitachi Heat Pumps and Domestic Hot Water (DHW)

https://www.hitachiaircon.com/ranges/heating
1•teleforce•1h ago•0 comments

Driving Xiaomi's Electric Car: Are We Cooked? [video]

https://www.youtube.com/watch?v=Mb6H7trzMfI
1•colonCapitalDee•1h ago•0 comments

Show HN: A Web UI Generator for Rust CLI Projects

https://github.com/wb14123/clap-web-gen
1•wb14123•1h ago•0 comments

Waymo investigated for ongoing failures to stop for school busses

https://www.thestreet.com/technology/waymo-investigation-could-stop-autonomous-driving-in-its-tracks
8•toss1•1h ago•0 comments

Show HN: Day 0 of Walkable Infrastructure

1•duane_powers•1h ago•0 comments

Linux Founder Linus Torvalds Defends Windows' Blue Screens of Death

https://www.pcworld.com/article/3002074/linux-founder-linus-torvalds-defends-windows-blue-screens...
1•teleforce•1h ago•0 comments

Drosophila Brain Model

https://github.com/philshiu/Drosophila_brain_model
1•throwaway2027•1h ago•0 comments

Linux is the future of gaming – Gabe Newell, 2013 at LinuxCon [video]

https://www.youtube.com/watch?v=yeCuasjxsWk
4•embedding-shape•1h ago•0 comments