frontpage.
newsnewestaskshowjobs

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/

Rule 30: one black cell

https://www.wolframcollatzmahler.com/rule30/index.html
1•amichail•1m ago•0 comments

Open call for guest investigators in the life sciences

https://www.anthropic.com/news/open-call-guest-investigators-life-sciences
1•surprisetalk•3m ago•0 comments

Sony Exits UHD Blu-ray Player Market as Pull Back from Physical Media Continues

https://www.pushsquare.com/news/2026/10/sony-exits-uhd-blu-ray-player-market-as-pull-back-from-ph...
1•throw0101c•3m ago•0 comments

100% Reproducible OpenWrt SNAPSHOTs

https://aparcar.org/100-reproducible-openwrt/
1•aparcar•5m ago•0 comments

Liquid AI launches sub-20ms latency stack

https://www.liquid.ai/blog/low-latency
1•pember•7m ago•2 comments

Show HN: MarketMee – Builds marketing material from every push to GitHub

https://marketmee.app
1•adeiji1•8m ago•0 comments

The $300k Competition to Hijack AI Agents

https://www.aiengineering.report/p/inside-the-300k-competition-to-hijack
1•waprin•8m ago•0 comments

FBI sent a letter to MLK to try to convince him to kill himself

https://www.vox.com/xpress/2014/11/12/7204453/martin-luther-king-fbi-letter
4•handfuloflight•9m ago•0 comments

Show HN: Stumble Upon for AI News

https://ainews247.org/
2•computerex•10m ago•0 comments

Divine D. MVP

1•dawndrums•10m ago•0 comments

I'm Not Doing 996

https://www.elenaverna.com/p/im-not-doing-996
2•simonebrunozzi•12m ago•0 comments

The Perl and Raku Foundation by the Numbers

https://www.olafalders.com/2026/10/22/the-perl-and-raku-foundation-by-the-numbers/
1•oalders•12m ago•0 comments

Show HN: CNET – Complex-valued neural networks from scratch in C++/CUDA

https://github.com/crasmarum/CNet
2•almaya•13m ago•0 comments

The cult of the iPhone mini is alive and thriving

https://www.fastcompany.com/91625181/the-cult-of-the-iphone-mini-is-alive-and-thriving
1•layer8•14m ago•0 comments

Next Concept Modeling: Fast, Parallel Coarse-to-Fine Text Generation

https://github.com/HazyResearch/ncm
1•droidjj•14m ago•0 comments

Show HN: whytime: time(1) that tells you where the wall-clock time went

https://github.com/Arinerron/whytime
1•Arinerron•15m ago•0 comments

OpenClaw creator says he spent $10M in tokens last month

https://www.theregister.com/ai-and-ml/2026/10/21/openclaw-creator-says-he-spent-10-million-in-tok...
6•gmays•22m ago•2 comments

Thoughts on AI in game development (from the trenches)

https://www.reddit.com/r/Games/comments/1xcr1au/thoughts_on_ai_in_game_development_from_the/
1•minimaxir•22m ago•0 comments

Memory Safe PHP

https://mbrock.github.io/filnix/php-on-filc/
1•pizlonator•26m ago•0 comments

Pangram 4.1 Model Card

https://www.pangram.com/research/model-card/pangram-4-1
1•Nition•29m ago•1 comments

True Depth Makes Crossing Boundaries Safe from Confident Ignorance

https://civicpivot.blogspot.com/2026/10/anchored-generalism-what-depth-makes.html
1•civicpivot•30m ago•0 comments

Coordinated Vulnerability Disclosure: How to do it and why it matters

https://coordinated-vulnerability-disclosure.github.io/en-us/
1•jph•31m ago•1 comments

WindowINK – An offline-first, mobile-first digital signage solution

https://www.windowink.com/
1•desvides•33m ago•0 comments

US banks are blocking third-party AI agents access to customer accounts

https://www.reuters.com/legal/government/us-banks-detect-unauthorized-ai-agents-customer-accounts...
5•champagnepapi•34m ago•2 comments

Meta to Pay Zuckerberg's CA Wealth Tax

https://seekingalpha.com/news/4655678-meta-approves-class-c-share-structure-strikes-deal-to-retai...
5•bigwheels•34m ago•3 comments

How does Fable 5.1 hide messages in images?

https://www.lesswrong.com/posts/WHEQps5PK8LrrcTAb/how-does-fable-5-1-hide-messages-in-images
3•gmays•37m ago•0 comments

Railpass

https://train.samismith.com/
6•CharlesW•39m ago•3 comments

Show HN: Hexal – Modal text editor with feature parity with Helix, Lua plugins

https://hexal.pages.dev/
2•whatever990•41m ago•0 comments

Claudopus vs. Astralisk

https://kbr.is-a.dev/claudopus-vs-astralisk/
1•kbr-•44m ago•0 comments

We Can't Let Big Tech Oligarchs Replace the Human Race [video]

https://www.youtube.com/watch?v=vjtMGKzyhNs
2•Aldipower•44m ago•0 comments