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

Comments

bastawhiz•8mo ago
Is this a problem that people actually have?
xeromal•8mo ago
Fun side project man!
primitivesuave•8mo 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•8mo 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•8mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•8mo 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•8mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Heathrow Drops the Liquids Rule

https://flymag.com/heathrow-drops-the-liquids-rule-what-changes-at-lhr-and-how-close-the-u-s-real...
1•lxm•1m ago•0 comments

AI Content Disclosure for HTML

https://github.com/WICG/proposals/issues/261
1•nnx•7m ago•0 comments

Sepp Blatter suggests fans should not travel to US for World Cup

https://www.theguardian.com/football/2026/jan/26/sepp-blatter-suggests-fans-should-not-travel-to-...
2•KnuthIsGod•8m ago•1 comments

iOS 26.3 Adds Privacy Setting to Limit Carrier Location Tracking

https://www.macrumors.com/2026/01/26/ios-26-3-limit-precise-location/
2•dmmalam•13m ago•0 comments

Claude Code Ported LeelaChessZero CUDA Back End to ROCm: End of CUDA Moat

https://github.com/LeelaChessZero/lc0/pull/2375
1•CalChris•17m ago•0 comments

Agentic coding is accelerating app releases

https://www.coatue.com/c/takes/chart-of-the-day-2026-01-22
1•nl•17m ago•0 comments

Show HN: Free image-to-JSON converter (extract structured data from images)

https://imageat.com/image-to-json-convertor
1•incendies•23m ago•0 comments

I'm an apprentice electrician. I built this iOS app using only Claude

1•discovrapp•24m ago•2 comments

Russian Sandworm Hackers Blamed for Cyberattack on Polish Power Grid

https://www.securityweek.com/russian-sandworm-hackers-blamed-for-cyberattack-on-polish-power-grid/
1•Bender•27m ago•0 comments

The (digital) dynamic square: circular videos and other screen shape experiments

https://www.adamsebire.info/the-works/circular-videos-and-dynamic-squares-experimental-aspect-rat...
1•andsoitis•32m ago•0 comments

Show HN: An autopoietic agent forge for emergent, consensus-based AI ecosystems

https://github.com/jzkool/Aetherius-sGiftsToHumanity/blob/main/Architectural%20Software/Protogen_...
1•hiddenarchitect•34m ago•1 comments

Show HN: OneTaskAtATime – a focused todo list app made with Claude Code

https://github.com/cmdavis25/OneTaskAtATime
1•worksOnMyPC•35m ago•0 comments

AI Gains Starting to Show in the Real Economy

https://weightythoughts.com/p/ai-gains-starting-to-show-in-the
1•gmays•35m ago•0 comments

Show HN: An app that finds your perfect laptop in seconds (no affiliate agenda)

https://www.greatrecs.com/
1•unbuns•36m ago•0 comments

Realtime video model with SOTA quality

https://twitter.com/i/status/2015937856351440971
1•metarmeg•37m ago•0 comments

Musk's xAI datacenter generating extra electricity illegally, regulator rules

https://www.theguardian.com/technology/2026/jan/15/elon-musk-xai-datacenter-memphis
3•gnabgib•40m ago•0 comments

Low-cost system turns smartphones into emergency radiation detectors

https://www.hiroshima-u.ac.jp/en/news/95263
2•geox•40m ago•0 comments

Replacing the Launcher of a Chromecast with Google TV 4K

https://www.celsoazevedo.com/replace-launcher-chromecast-google-tv/
2•celsoazevedo•44m ago•0 comments

The central dogma of molecular biology (2011) [video]

https://www.youtube.com/watch?v=J3HVVi2k2No
2•measurablefunc•46m ago•0 comments

MCP Apps

https://www.theregister.com/2026/01/26/claude_mcp_apps_arrives/
1•gastonmorixe•48m ago•1 comments

Build and Maintain GOG Galaxy on Linux

https://www.gog.com/en/work/senior-software-engineer-c-gog-galaxy
4•haunter•55m ago•1 comments

AWS's inevitable destiny: becoming the next Lumen

https://www.theregister.com/2026/01/26/aws_destiny_lumen_corey_quinn/
2•ilamont•56m ago•0 comments

I Connected Clawdbot to Gmail Without Opening Any Ports

https://gist.github.com/jrork/c2e37e7bb3fd0e7a72041bc846feeb94
1•jrork•57m ago•0 comments

TikTokers are heading to UpScrolled following US takeover

https://www.theverge.com/news/867958/tiktok-upscrolled-app-us-takeover
5•cardamomo•57m ago•0 comments

Who Operates the Badbox 2.0 Botnet?

https://krebsonsecurity.com/2026/01/who-operates-the-badbox-2-0-botnet/
1•Bender•59m ago•0 comments

Tesla brings Cybertruck to Middle East amid US demand collapse

https://electrek.co/2026/01/26/tesla-brings-cybertruck-to-middle-east-amid-us-demand-collapse/
4•Bender•1h ago•0 comments

Week 2: EE 292P The Semiconductor Technology, Pt. 1

https://hnvr.medium.com/week-2-ee-292p-atoms-bits-and-the-national-interest-the-semiconductor-tec...
1•malchow•1h ago•0 comments

Yann LeCun: Current AI Is Dead End

https://www.nytimes.com/2026/01/26/technology/an-ai-pioneer-warns-the-tech-herd-is-marching-into-...
10•rooftopzen•1h ago•2 comments

Reddit lawyers win trademark battle over 'WallStreetBets'

https://finance.yahoo.com/news/reddit-lawyers-force-founder-redact-184500502.html
2•Fyrezerk•1h ago•2 comments

Sparse Mixture of Experts for Game AI: An Accidental Architecture

https://github.com/streamlineddesigns/Sparse-Mixture-of-Experts
2•ColorSwitchDev•1h ago•1 comments