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/

Maths Genealogy Project Graph

https://mgpgraph.com/
1•Tazerenix•23s ago•1 comments

Interleaf: An experimental tool for LLM assisted knowledge exploration

https://interleaf.tulv.in/
1•atulvi•2m ago•0 comments

AI Live Speech Rewriting Patent

https://patentlyze.com/patent/microsoft-live-ai-video-rewrites-speech/
1•sweetdingoes•3m ago•0 comments

Chimera Vocal Synth

https://twitter.com/jamesonhodge/status/2118733265372860826
1•ad8e•4m ago•0 comments

Real-Time Data Streaming for Live Video

https://www.red5.net/blog/real-time-data-streaming-for-live-video/
1•mondainx•4m ago•0 comments

Modern LLMs have tiny GPTs hidden inside them

https://invertedpassion.substack.com/p/modern-llms-have-tiny-gpts-hidden
1•gmays•18m ago•0 comments

My parents chose to die together and I was left to grieve alone

https://www.bbc.com/news/articles/c81dwllzv113o
4•onemoresoop•19m ago•0 comments

Here Be Monsters

https://www.nybooks.com/online/2026/10/30/here-be-monsters/
1•petethomas•19m ago•0 comments

VindexLLM – Windows Vulkan GPU GGUF LLM inference engine written in Delphi 12

https://github.com/tinyBigGAMES/VindexLLM
1•peter_d_sherman•19m ago•0 comments

PullDash – Review pull requests in a high-performance UI, driven by keybinds

https://pulldash.com/
1•anewhnaccount2•20m ago•0 comments

Self-promotion and the Altmetric score (2021)

https://yoursay.plos.org/2021/09/self-promotion-and-the-altmetric-score/
1•enjoyyourlife•21m ago•1 comments

What It Costs to Run 4 Apps on My Own Servers

https://akashrajpurohit.com/blog/what-it-costs-to-run-4-apps-on-my-own-servers/
1•ghostfoxgod•24m ago•0 comments

Pinot Noir: inside the criminal gangs making fake wine

https://www.economist.com/interactive/2026/11/06/pinot-noir-inside-the-criminal-gangs-making-fake...
1•axiomdata316•32m ago•0 comments

How do photonic logic gates work?

https://www.youtube.com/watch?v=ln0zZcQXv38
1•slowcooked12_•36m ago•0 comments

The internet has a human slop problem, and AI is exposing it

https://www.businessinsider.com/ai-human-slop-software-security-vulnerabilities-internet-2026-10
1•ghernando•36m ago•0 comments

Indirect Change

https://herbertlui.net/indirect-change/
2•herbertl•47m ago•0 comments

Sequoia shutting down its Scouts program marks the end of an era

https://techcrunch.com/2026/11/06/sequoia-shutting-down-its-scouts-program-marks-the-end-of-an-era/
2•nlpnerd•49m ago•0 comments

Next bcachefs release will be 100% Rust

https://github.com/lxc/incus/issues/213#issuecomment-6716682748
1•rsyring•57m ago•0 comments

My Two Front Teeth

https://theamericanscholar.org/my-two-front-teeth/
1•gmays•1h ago•0 comments

Show HN: We Build Shareable Context Layer for Agent Teams

https://github.com/volcengine/OpenViking
1•zaynjarvis•1h ago•1 comments

PolyNotes App

1•PolySync•1h ago•0 comments

The Loss of Positive Friction

https://cutlefish.substack.com/p/tbm-450-the-loss-of-positive-friction
2•swolpers•1h ago•0 comments

Show HN: Gimbap – A themeable replacement for the macOS Dock

https://minho42.github.io/gimbap/
1•minho42•1h ago•0 comments

Show HN: Reges Code – a free AI code editor that runs on local models

https://regescode.com/
1•nonerthy•1h ago•0 comments

The SideWinder Game Pad, Microsoft's first game controller

https://www.rockpapershotgun.com/can-the-sidewinder-game-pad-microsofts-first-game-controller-wor...
2•Tomte•1h ago•0 comments

Sony World Photography Awards Honors James Barnor, Ghana's First Photojournalist

https://petapixel.com/2026/11/05/sony-world-photography-awards-honors-james-barnor-ghanas-first-p...
1•Tomte•1h ago•0 comments

Are Passkeys a Trap?

https://jimthefrog.substack.com/p/are-passkeys-a-trap
1•nonfunctional•1h ago•0 comments

Our software engineering interviews are changing (a little)

https://blog.janestreet.com/software-engineering-interviews-are-changing-a-little/
1•hubraumhugo•1h ago•0 comments

Is "GPU-hour per user" a sane way to price LLM inference?

https://www.mirastacklabs.ai/
1•mirastacklabs•1h ago•0 comments

Kirlian Photography: Building Your Own Equipment

https://imagesco.com/articles/kirlian/kirlian-photography.html
9•joebig•1h ago•1 comments