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/

Show HN: Scrieb – Offline meeting transcription, diarization and summaries

https://scrieb.com/
1•alxkzh•3m ago•0 comments

What's the Future for Pure Math Research in the Age of AI?

https://writings.stephenwolfram.com/2026/09/whats-the-future-for-pure-math-research-in-the-age-of...
1•demivoleegaston•3m ago•0 comments

Twin

https://twin.siddharththakkar.xyz/
1•woustachemax•5m ago•0 comments

OpenAI Dev Day, Dot and OpenAI's Product Transition, Sign in with ChatGPT

https://stratechery.com/2026/openai-dev-day-dot-and-openais-product-transition-sign-in-with-chatgpt/
1•swolpers•9m ago•0 comments

Who's Responsible for Irresponsible AI?

https://www.deeplearning.ai/the-batch/whos-responsible-for-irresponsible-ai
1•svg7•10m ago•0 comments

Declaration of the Rights of Man and of the Citizen

https://en.wikipedia.org/wiki/Declaration_of_the_Rights_of_Man_and_of_the_Citizen
1•peter_d_sherman•10m ago•0 comments

Brief exposure to hopeful YouTube videos reduces depressive symptoms

https://psycnet.apa.org/doiLanding?doi=10.1037%2Fppm0000676
1•geox•13m ago•0 comments

Gold Kubb Fanless MiniPC, with 13kg of gold (worth $1.7M)

https://www.fanlesstech.com/2026/09/gold-kubb-fanless.html
1•giuliomagnifico•15m ago•0 comments

Programmatic Tool Calling

https://developers.openai.com/api/docs/guides/tools-programmatic-tool-calling
1•tosh•15m ago•0 comments

Experimental Distinguishability of Computed and Fundamental Physical Dynamics

https://omarali.me/papers/computed-vs-fundamental-physical-dynamics
1•omarali-me•17m ago•0 comments

Show HN: VoxScribe – local, offline voice dictation for Windows (open source)

https://github.com/ahmedhmam1994/voxscribe-ai-voice-dictation
1•ahmedibrahim199•17m ago•0 comments

Useful JavaScript Features Added in ECMAScript 2026

https://jsdev.space/ecmascript-2026-features/
1•javatuts•17m ago•0 comments

How to Sync a Design System with Claude Design

https://nitayneeman.com/blog/how-to-sync-a-design-system-with-claude-design/
1•nitayneeman•17m ago•0 comments

AeroJAX

https://github.com/arriemeijer-creator/AeroJAX
1•marklit•18m ago•0 comments

Show HN: A crypto trading demo using WebGPU and QuestDB

https://www.scitrader.io/
2•abtgraphics•20m ago•0 comments

GPT-6.1 Sol replaces GPT-6 Sol after just 7 days, with near-Astra intelligence

https://artificialanalysis.ai/articles/gpt-6-1-sol-replaces-gpt-6-sol-after-just-7-days-with-near...
2•theanonymousone•22m ago•1 comments

Ken Griffin Donates $500M to Carnegie Mellon School of Computer Science

https://www.cmu.edu/news/stories/archives/2026/september/500m-gift-will-fuel-next-era-of-computer...
1•jtbetz22•23m ago•1 comments

AA-AgentPerf-Local: Benchmarking local AI agents on laptops and workstations

https://artificialanalysis.ai/articles/aa-agentperf-local
1•theanonymousone•23m ago•0 comments

Pi.dev: You Said No MCP

https://earendil.com/posts/you-said-no-mcp/
20•yarapavan•26m ago•1 comments

Socialist in Seattle

https://prospect.org/2026/09/28/oct-2026-socialist-in-seattle-katie-wilson/
2•robtherobber•26m ago•0 comments

Israel-bound flight lands in Saudi Arabia after violent incident between pilots

https://www.cnn.com/2026/09/30/world/live-news/dubai-israel-plane-flydubai-intl
5•jeffwass•27m ago•0 comments

The Open-Source Artifactory Alternative

https://artifactkeeper.com
1•sagacity•30m ago•0 comments

How Does Instagram Instantly Know If Your Username Is Available?

https://itsnas.me/writing/username-availability
1•itsnasme•32m ago•0 comments

Find New Business Ideas

https://fleden.com/
1•beatsoninfo•32m ago•0 comments

OpenAI cuts $200 plan allowance in half – new $500 plan available

https://thenewstack.io/openai-halves-200-plan/
1•properbrew•35m ago•0 comments

Ask HN: What are you reading to your kids?

2•jopizio•37m ago•0 comments

Flydubai B38M, first officer under investigation for suspected suicide attempt

https://avherald.com/h?article=5423fa17
3•haunter•38m ago•0 comments

Agent haven, an end-to-end encrypted messaging network for AI agents

https://agenthaven.org/
1•root__•43m ago•0 comments

Show HN:I built an AI agent team that recreates the style of any video

https://github.com/edenfunf/reelmimic
1•Edenfunf•43m ago•0 comments

Carnegie Mellon University Announces Historic $3B Gift from Ken Griffin

https://www.cmu.edu/news/stories/archives/2026/september/carnegie-mellon-university-announces-his...
1•jparise•45m ago•0 comments