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/

GNU Parallel 20260622 ('Rape Gang Inquiry') Released

https://lists.gnu.org/archive/html/parallel/2026-06/msg00000.html
1•jiqiren•2m ago•1 comments

Panoptes – AI audit and alignment layer

https://github.com/miggy-code/Panoptes
1•mpadilla•2m ago•1 comments

I'm Not Good at Goodbyes

https://hannahaubry.online/im-not-good-at-goodbyes
1•backlit4034•2m ago•0 comments

Optimizing open-source FPGA 80386 for performance gains

https://hackaday.com/2026/07/06/performance-improvements-for-open-source-80386/
1•whiteblossom•4m ago•0 comments

Show HN: Emem.dev – signed earth memory for physical AI

1•avijeetsingh16•6m ago•0 comments

A nonsense phrase of shady provenance makes the rounds, Elsevier defends its use

https://retractionwatch.com/2025/02/10/vegetative-electron-microscopy-fingerprint-paper-mill/
1•jacquesm•6m ago•0 comments

Max Ginsburg, War Pieta, 2007

https://narrativepainting.net/max-ginsburg-war-pieta-2007/
2•halperter•15m ago•0 comments

'Our business today is not healthy': MSFT looks to 'reset' gaming division

https://fortune.com/2026/07/06/microsoft-xbox-layoffs-gaming-division-1600-4800-employees/
1•1vuio0pswjnm7•19m ago•1 comments

Albuquerque Modernism: Manera Nueva and Steve Baer

https://albuquerquemodernism.unm.edu/posts/cs14_manera_nueva_placitas.html
1•PaulDavisThe1st•19m ago•0 comments

Show HN: Storytelling for coding agents, using Pixar's story process

https://kashyab.com/blog/teaching-a-coding-agent-to-write-stories.html
2•Kashyab12•20m ago•0 comments

OSS Local AI Workspace

https://www.usestitch.ai/
1•tomEdison•25m ago•0 comments

Sculpt a Vase

https://killedbyapixel.github.io/VaseFX/
1•memalign•27m ago•2 comments

Microsoft to cut 4,800 jobs in major Xbox and gaming division 'reset'

https://www.fastcompany.com/91569769/xbox-layoffs-microsoft-sharma
2•1vuio0pswjnm7•34m ago•1 comments

Machine Is a Server. Do Not Power Down

https://adlternative.github.io/posts/ai/from-local-agent-to-cloud-agent/
1•adltereturn•35m ago•0 comments

AutomationBench-AA

https://artificialanalysis.ai/articles/announcing-zapier-automationbench-aa
1•jameson•35m ago•0 comments

Taste when your user has no eyes

https://twitter.com/renzo_viale/status/2068730076989186283
1•rvialep•36m ago•0 comments

Gadgets for People Who Don't Trust the Government [video]

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

How Do Synthesizers Work? (An Interactive Exploration)

https://perthirtysix.com/how-the-heck-do-synthesizers-work
2•gmays•37m ago•1 comments

Show HN: • Introducing Dotflowy

https://twitter.com/CameronPak/status/2074262605779124317
1•campak•39m ago•1 comments

Apple 'Hide My Email' Vulnerability Reveals Peoples' Real Email Addresses

https://www.404media.co/apple-hide-my-email-vulnerability-reveals-peoples-real-email-addresses/
1•1vuio0pswjnm7•42m ago•1 comments

Link Site

https://xxsml.com
1•sohocs509•45m ago•1 comments

First Kirby Game Was Created with a Trackball, No Keyboard

https://www.pcmag.com/news/first-kirby-game-was-created-with-a-trackball-no-keyboard
2•scottchiefbaker•47m ago•0 comments

Show HN: Foundation – A Tale of Tokens and Psychosis

https://github.com/nmxmxh/foundation
1•MomohNobert•49m ago•0 comments

Freemediaheckyeah

https://fmhy.net/reading
1•kamphey•51m ago•0 comments

Building a Datacenter in My Dorm Room

https://corvaglia.dev/blog/2026/datacenter-in-dorm/
1•corvad•52m ago•0 comments

Windows 11 will soon be able to reinstall itself and drivers without a USB drive

https://www.windowscentral.com/microsoft/windows-11/windows-11-will-soon-be-able-to-reinstall-its...
2•thunderbong•53m ago•1 comments

Cases of parasite that causes explosive bathroom emergencies surge to nearly 600

https://www.dailymail.com/health/article-15956735/cyclospora-parasite-outbreak-michigan-restauran...
3•Bender•58m ago•0 comments

X Launches iOS Video Editor with Captions and Green Screen

https://twitter.com/nikitabier/status/2074218166033781048
1•mak8•1h ago•0 comments

Decomposer: Learning to Decompile Symbolic Music (Like MIDI) to Programs

https://arxiv.org/abs/2607.01849
1•laybak•1h ago•0 comments

Pi (Rust): High-performance AI coding agent CLI written in Rust

https://github.com/Dicklesworthstone/pi_agent_rust
1•rsyring•1h ago•0 comments