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

Comments

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

Clang-Format Configurator v2

https://clang-format-configurator.site/
1•gjvc•9s ago•0 comments

Apple just gave a clue that a big AI acquisition may be in the cards

https://www.marketwatch.com/story/apple-just-gave-a-subtle-clue-that-a-splashy-ai-acquisition-may...
1•dalvrosa•33s ago•0 comments

First Nations students are teaching themselves

https://www.cbc.ca/news/canada/edmonton/frog-lake-cree-language-app-9.7185348
1•01-_-•57s ago•0 comments

Convicted former Harvard scientist rebuilds brain computer lab in China

https://www.reuters.com/world/china/convicted-former-harvard-scientist-rebuilds-brain-computer-la...
1•01-_-•1m ago•0 comments

Looking for Employers for the job fair and hiring with Meeting C++

https://www.meetingcpp.com/meetingcpp/news/items/Looking-for-Employers-for-the-job-fair-and-hirin...
1•dalvrosa•2m ago•0 comments

Gall's Law – Yagnipedia

https://yagnipedia.com/wiki/galls-law
2•ankitg12•6m ago•0 comments

Neomd: A minimal terminal email client for people who write in Markdown

https://neomd.ssp.sh/
1•handfuloflight•7m ago•0 comments

The Discord migration that didn't happen

https://productimpossible.com/articles/discord-migration-that-didnt-happen/
1•sebakubisz•13m ago•0 comments

Show HN: Autorank – Rank on Google and AI search while you sleep

https://www.getautorank.ai/
1•alokjnv10•14m ago•0 comments

How fast is a macOS VM, and how small could it be?

https://eclecticlight.co/2026/05/02/how-fast-is-a-macos-vm-and-how-small-could-it-be/
1•moosia•14m ago•0 comments

ZenBusiness Data Breach

https://haveibeenpwned.com/Breach/ZenBusiness
1•amazonhut•16m ago•0 comments

How Casey Newton is revamping his newsletter to compete with AI

https://www.niemanlab.org/2026/04/more-scoops-less-aggregation-and-analysis-how-casey-newton-is-r...
1•giuliomagnifico•17m ago•0 comments

US to Withdraw Troops from Germany

https://www.dw.com/en/us-to-withdraw-thousands-of-troops-from-germany/a-77016071
2•pera•21m ago•0 comments

Dazzle Camouflage

https://en.wikipedia.org/wiki/Dazzle_camouflage
2•tosh•21m ago•0 comments

AMD Posts HDMI 2.1 FRL Patches for Their Amdgpu Linux Driver

https://www.phoronix.com/news/AMDGPU-HDMI-2.1-FRL-Patches
1•type0•23m ago•0 comments

Andrej Karpathy: From Vibe Coding to Agentic Engineering

https://www.youtube.com/watch?v=96jN2OCOfLs
2•swolpers•26m ago•0 comments

Study: AI models that consider user's feeling are more likely to make errors

https://arstechnica.com/ai/2026/05/study-ai-models-that-consider-users-feeling-are-more-likely-to...
1•rbanffy•32m ago•0 comments

Show HN: I built Male Hormone Lab Interpreter that does what LLMs can't

https://www.longevity-tools.com/male-hormones-interpreter
2•zsolt224•33m ago•0 comments

Spirit Airlines Is Winding Down All Operations

https://spiritrestructuring.com/
1•KoftaBob•34m ago•0 comments

Show HN: Shutt – Turn Strava activities into shareable photo/video posts

https://shutt.run
1•zzarcon•35m ago•0 comments

Who's the First Person in History Whose Name We Know? (2015)

https://www.nationalgeographic.com/science/article/whos-the-first-person-in-history-whose-name-we...
2•downbad_•35m ago•1 comments

Show HN: Browser-based light pollution simulator using real photometric data

https://iesna.eu/?wasm=skyglow_demo
5•holg•37m ago•0 comments

Show HN: PythonStarter – now with Bitcoin Lightning payments

https://pythonstarter.co/
1•dan_easterman•40m ago•0 comments

Intel Inside the Micro Revolution: 8008 Origins

https://thechipletter.substack.com/p/intel-inside-the-micro-revolution
1•klelatti•41m ago•0 comments

Show HN: Filling PDF forms with AI using client-side tool calling

https://copilot.simplepdf.com/?share=a7d00ad073c75a75d493228e6ff7b11eb3f2d945b6175913e87898ec96ca...
4•nip•51m ago•1 comments

Brace for the patch tsunami: AI is unearthing decades of buried code debt

https://www.theregister.com/2026/05/02/ncsc_brace_for_patch_tsunami/
4•zeristor•51m ago•0 comments

Show HN: From Beats to Notes and Beyond

https://bookerapp.replit.app/book/fom/from-temporal-structure
1•ersinesen•55m ago•0 comments

Ask HN: Is it possible to upgrade the RAM of a MacBook Air M2?

1•julienreszka•55m ago•0 comments

CPanel CVE-2026-41940 Exploitation from a Honeypot Perspective

https://defusedcyber.com/cve-2026-41940-cpanel-exploitation-honeypot-perspective
1•waihtis•59m ago•0 comments

Ask HN: Is the AI running out of capacity?

1•roschdal•1h ago•0 comments