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•1y ago

Comments

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

VRL Log Splitting – FlowG v0.55.0

https://flowg.cloud/blog/vrl-log-splitting
1•linkdd•25s ago•0 comments

PCI-Sig PCIe 8.0 Specification Draft 0.5 Released

https://www.servethehome.com/pci-sig-pcie-8-0-specification-draft-0-5-released/
1•ksec•28s ago•0 comments

Urban Thermal Comfort Spatialization and Risk Assessment in Strasbourg, France

https://www.mdpi.com/2072-4292/18/9/1271
1•PaulHoule•44s ago•0 comments

Pixels I Have Known and Loved

https://www.datagubbe.se/pihkal/
1•ibobev•1m ago•0 comments

The Hardest Part of a Raytracer Is Fitting It in Your Head

https://scottlawsonbc.com/post/raytracer
1•surprisetalk•1m ago•0 comments

Claude forgets everything between sessions – the architecture I built to fix it

https://backroadz.substack.com/p/how-i-turned-claude-into-a-self-briefing
1•timdifford•1m ago•0 comments

The Future Is Shrouded in an AI Fog

https://hbr.org/2026/04/the-future-is-shrouded-in-an-ai-fog
1•thedebuglife•1m ago•0 comments

Show HN: Ced – C REPL in 50 lines of POSIX shell

https://codeberg.org/janAkali/ced
1•archargelod•2m ago•0 comments

Natura Non Facit Saltus

https://en.wikipedia.org/wiki/Natura_non_facit_saltus
1•o4c•3m ago•0 comments

Claude Managed Agents: dreaming, outcomes, and multiagent orchestration

https://claude.com/blog/new-in-claude-managed-agents
1•thedebuglife•3m ago•0 comments

Student stops fоur Taiwan high-speed trains with software defined radios

https://www.tomshardware.com/tech-industry/cyber-security/college-student-hacks-taiwan-high-speed...
1•lschueller•3m ago•0 comments

The Upper Middle Class Trap

https://ofdollarsanddata.com/the-upper-middle-class-trap/
1•speckx•9m ago•0 comments

Instead of picture puzzles: Google introduces QR code challenge against AI bots

https://www.heise.de/en/news/Instead-of-picture-puzzles-Google-introduces-QR-code-challenge-again...
2•hebelehubele•10m ago•0 comments

Visionaire Studio: Create Your Own Adventure Game – No Coding Requided

https://www.visionaire-studio.net/?lang=en
2•doener•11m ago•0 comments

Law of three stages – Auguste Comte

https://en.wikipedia.org/wiki/Law_of_three_stages
1•o4c•17m ago•0 comments

Web tool for visualizing photo GPS EXIF data on a map (runs in browser)

https://mediakarte.netlify.app/
1•geobes•17m ago•1 comments

Urban birds fear women more than men, and scientists don't know why

https://phys.org/news/2026-04-urban-birds-women-men-scientists.html
3•wjSgoWPm5bWAhXB•18m ago•0 comments

Xkcd.com/435: Purity

https://www.explainxkcd.com/wiki/index.php/435:_Purity
1•o4c•20m ago•0 comments

AI in the Breach: How an Adversary Leveraged AI to Target a Water Utility's OT

https://www.dragos.com/blog/ai-assisted-ics-attack-water-utility
1•_____k•22m ago•0 comments

Event Calendar from Newsletters

https://nowsletter.org/
1•jolosos•24m ago•1 comments

Anon: Extrapolating Adaptivity Beyond SGD and Adam

https://anonymous.4open.science/api/repo/Anon-6511/file/README.md
1•pilooch•25m ago•0 comments

Tell HN: IBM BPM cloud is down

1•laurensr•28m ago•0 comments

Algorithmic Framework Is Discovering Novel Chip Designs Never Invented Before

https://viterbischool.usc.edu/news/2026/05/this-algorithmic-framework-is-discovering-novel-chip-d...
2•giuliomagnifico•29m ago•0 comments

KLM flight attendant hospitalized after contact with hantavirus

https://nltimes.nl/2026/05/07/klm-flight-attendant-hospitalized-contact-hantavirus-cruise-ship-pa...
16•TechTechTech•30m ago•7 comments

Show HN: LaoTzu Writer Studio

2•homeonthemtn•30m ago•0 comments

Anthropic strikes SpaceX data center deal as it plows ahead on AI coding

https://www.reuters.com/business/retail-consumer/anthropic-unveils-dreaming-feature-help-its-ai-a...
2•andsoitis•31m ago•0 comments

Show HN: Bliss – a backlog quality scanner for AI-powered teams

https://trybliss.io/
2•nitzano•32m ago•0 comments

Package Darwinism, the Furture of Open Source, Adapt or Get Archived

https://twitter.com/pelaseyed/status/2052345682984407067
1•homanp•32m ago•0 comments

Anthropic Gets in Bed with SpaceX

https://www.wired.com/story/anthropic-spacex-compute-deal-colossus/
2•andsoitis•32m ago•0 comments

Coding Agent Harness Comparison 2026: Claude Code, Codex, Amp

https://techstackups.com/comparisons/coding-agent-harness-comparison-2026/
1•ritzaco•32m ago•0 comments