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

Comments

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

Kurt Gödel's Brilliant Madness

https://www.cantorsparadise.com/kurt-g%C3%B6dels-brilliant-madness-84288dd96eda
1•tzury•44s ago•0 comments

ChatGPT made Flappy Bird for Atari 2600 by writing byte code directly

https://twitter.com/lisperati/status/2026500894905479584
1•smusamashah•1m ago•0 comments

A leaked roster of 2,200 Bohemian Grove members

https://sfstandard.com/2026/02/25/new-illuminati-list-just-dropped-leaked-roster-2-200-bohemian-g...
1•billfor•1m ago•0 comments

Reappraisal of paths to decarbonising British electricity generation in 2030

https://iopscience.iop.org/article/10.1088/2753-3751/ae4235
1•PaulHoule•2m ago•0 comments

The Open Anonymity Project

https://openanonymity.ai/
1•jhalderm•5m ago•0 comments

Show HN: I built a minimal file organizer CLI and underestimated filesystem case

https://github.com/ChristianRincon/auto-organize
1•chris-corner•5m ago•0 comments

Claude Code Memory

https://code.claude.com/docs/en/memory
1•mfiguiere•5m ago•0 comments

Show HN: Praktor – Multi-agent Claude Code orchestrator with Docker isolation

https://github.com/mtzanidakis/praktor
1•mtzanidakis•6m ago•0 comments

Chaos Has a Market

https://blog.lpsz.org/posts/2026-02-26-zero/
1•abelgvidal•7m ago•0 comments

Show HN: HelioSim – Real-time N-body simulator in WebAssembly

https://koprolin.com/heliosim/
1•JustClemens•7m ago•0 comments

Statement from Dario Amodei on Our Discussions with the Department of War

https://www.anthropic.com/news/statement-department-of-war
12•qwertox•12m ago•3 comments

'Migaloo', a white humpback whale on Australia's east coast

https://www.migaloo.com.au/
1•bookofjoe•14m ago•0 comments

K-Search: LLM Kernel Generation via Co-Evolving Intrinsic World Model

https://arxiv.org/abs/2602.19128
1•matt_d•16m ago•1 comments

Dark Sky Creators Return with Acme Weather: A Fresh Take on Forecast Uncertainty

https://www.macstories.net/reviews/acme-weather-a-fresh-take-on-forecast-uncertainty/
1•thoughtpeddler•18m ago•0 comments

Show HN: Emergency kits – Their guide when you're not there to lead

https://hypervault.com/insights/new-release-emergency-kits
1•glennhv•19m ago•0 comments

Metacritic statement pledges to ban outlets that use AI-generated reviews

https://www.shacknews.com/article/148056/metacritic-statement-ai-reviews-banned
3•cratermoon•19m ago•0 comments

Jack Dorsey's Block to Lay Off 4k Employees in AI Remake

https://www.wsj.com/business/jack-dorseys-block-to-lay-off-4-000-employees-in-ai-remake-28f0d869
1•mraniki•20m ago•2 comments

Heptaconn: A framed TCP protocol separating admission and back end execution

https://github.com/newssourcecrawler/heptaconn
1•ismcanga•22m ago•0 comments

Sudo-rs enables password feedback by default

https://www.phoronix.com/news/sudo-rs-password-feedback
2•patal•23m ago•0 comments

Gucci criticised for 'AI slop' images ahead of major fashion show

https://www.bbc.co.uk/news/articles/cjwz6yzn5jqo
1•CrzyLngPwd•25m ago•0 comments

Midtraining Bridges Pretraining and Posttraining Distributions

https://arxiv.org/abs/2510.14865
1•matt_d•25m ago•0 comments

Steam Deck Plugin to Enable MTP File Transfer via USB DRD (Dual-Role Device)

https://github.com/dafta/DeckMTP
1•transpute•26m ago•0 comments

How do fintech platforms handle audit sampling of privileged actions?

1•leiishta•26m ago•0 comments

Warner Bros. Discovery deems Paramount offer superior to Netflix

https://www.cnbc.com/2026/02/26/warner-bros-discovery-paramount-skydance-deal-superior-netflix.html
2•pseudalopex•28m ago•0 comments

Show HN: InstallerStudio – Create MSI Installers Without InstallShield or WiX

https://www.ionline.com
2•pkailas•29m ago•0 comments

Hillary Clinton's Opening Statement to House Oversight and Gov Reform Committee

https://twitter.com/HillaryClinton/status/2027053057100693779
3•ZeroGravitas•30m ago•0 comments

Show HN: Visual Agents for Fitness: How to Enable Automated Exercise Feedback

https://jeremyparkphd.substack.com/p/daaee5d4-9fd9-40a4-8d03-19cf298c57dc
3•visioninmyblood•30m ago•0 comments

Show HN: The easiest way to run shell commands in plain English (no app needed)

https://github.com/iafan/at-command
1•iafan•30m ago•0 comments

Are there any AI video tools left that don't have aggressive safety filters?

https://unbound.video
1•gabrieln•31m ago•1 comments

Jack Dorsey's Block cuts nearly half of its staff in AI gamble

https://www.theverge.com/tech/885710/jack-dorsey-block-layoffs-job-cuts-ai
3•pavel_lishin•32m ago•1 comments