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/

AI Broke Cybersecurity. Visual Programming Can Fix It

https://medium.com/@toplinesoftsys/ai-broke-cybersecurity-visual-programming-can-fix-it-d7d1dae6f2b5
1•toplinesoftsys•41s ago•0 comments

Tunefield – a DJ's music library as a 3D field (free, open source, macOS)

https://github.com/tunefield/lite
1•markburnett•44s ago•0 comments

This Fluid Shows Us What Quantum Physics Is Like [video]

https://www.youtube.com/watch?v=KfODG5REyss
1•thunderbong•2m ago•0 comments

What a year of Claude Code and Codex issues is about

https://noteheld.com/research/claude-code-codex-issues-2026
1•Patt_•2m ago•0 comments

Forget about credit assignment in long-horizon agentic post-training

https://qiyaoliang.com/blog/es-vs-pg-long-horizon/
1•bilsbie•3m ago•0 comments

Show HN: Dereliction – leave a web page alone and it falls apart

https://oripekelman.github.io/dereliction/
1•OriPekelman•4m ago•0 comments

The Vanishing Human Presence – By a Midwestern Doctor

https://www.midwesterndoctor.com/p/the-vanishing-human-presence
1•bilsbie•4m ago•0 comments

TVPort

https://github.com/68hctmzzjf-svg/TVPort
1•thehoff•5m ago•0 comments

TVPort – Port switch games to run natively on AppleTV

https://www.reddit.com/r/decomps/comments/1xn3wh1/release_tvport_port_switch_games_to_run_natively/
1•notfried•6m ago•0 comments

God created men; Sam Altman made them equal

https://taylor.town/made-them-equal
1•surprisetalk•7m ago•0 comments

How to Give an Auditor Access to Your Agent Logs Without Handing over the Keys

https://medium.com/@MirArshadTalpur/how-to-give-an-auditor-access-to-your-agent-logs-without-hand...
1•Arshad-Talpur•8m ago•0 comments

Claude.md is full of lint rules in disguise

https://github.com/clirimajeti/codemyrules
1•clirimajeti•9m ago•0 comments

French bank Credit Mutuel Arkea says €100M missing after cyberattack

https://www.reuters.com/legal/government/french-bank-credit-mutuel-arkea-says-100-million-missing...
2•yakkomajuri•9m ago•1 comments

A performance trap: when store forwarding fails

https://lemire.me/blog/2026/11/05/a-performance-trap-when-store-forwarding-fails/
1•smilelamp•11m ago•0 comments

Show HN: Scribbles is a small drawing canvas and a gallery of what visitors send

https://scribbles.gallery/
1•bront•13m ago•0 comments

Code Was Never the Problem

https://www.zagaja.com/2026/10/code-was-never-the-problem/
1•mzagaja•14m ago•0 comments

Midterm Rout for Data Centers: Voters in Nearly 40 Towns Rejected Projects

https://www.motherjones.com/environment/2026/11/midterm-rout-rejected-data-centers-ballot-initiat...
1•cdrnsf•15m ago•0 comments

Discord is ditching Electron and its new app uses less RAM

https://www.theverge.com/news/1027379/discord-ditching-electron-web-app
3•archb•15m ago•0 comments

Turning Stories into Action

https://worldsensorium.com/ellen-windemuth-turning-stories-into-action/
1•dnetesn•15m ago•0 comments

The giant ELT telescope is the heir to the great cathedrals of Europe

https://blue-continuum.com/cathedrals-of-light
1•dnetesn•16m ago•0 comments

The Future is Niri (2025)

https://ersei.net/en/blog/niri
1•theanonymousone•17m ago•0 comments

Motorola's Signature 27 is finally bringing GrapheneOS to non-Pixel phones

https://www.howtogeek.com/motorola-signature-27-graphene-os/
1•teekert•17m ago•0 comments

Welcome to Nginx2shell

https://nginx2shell.com/
1•choult•17m ago•0 comments

The Afterlife of Pi

https://pudding.cool/2026/11/pi/
1•rabbit911•17m ago•0 comments

Show HN: ReadyTab – new-tab workspace with a desktop companion

https://readytab.cloud/
2•yako21000•18m ago•1 comments

Apple fits a LLM on iPhone with surgical efficiency

https://www.youtube.com/watch?v=sb9uPuiyM_8
1•lroe•18m ago•0 comments

Show HN: Lmux – A Lightweight macOS Terminal for Claude Code and Codex

https://github.com/sooftware/lmux
3•sooftware14•19m ago•0 comments

Ten Thousand Years (2014)

https://99percentinvisible.org/episode/ten-thousand-years/
1•zenincognito•20m ago•0 comments

Systemd WatchdogSec: The Kill Switch for Hung AI-Generated Code

https://cheikhhseck.medium.com/systemd-watchdogsec-the-kill-switch-for-hung-ai-generated-code-ce2...
1•cheikhdev•20m ago•0 comments

Download your favourite YouTube videos

https://criminallyvulgar.dev/you-should-absolutely-download-your-favourite-youtube-videos/
1•surprisetalk•20m ago•0 comments