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/

Was It Ever Possible to Read "All the Books in the World?"

https://worldhistory.substack.com/p/was-it-ever-possible-to-read-all
1•crescit_eundo•35s ago•0 comments

Educational game dev program cancelled because submitted games were made with AI

https://www.pcgamer.com/software/ai/educational-game-dev-program-cancelled-because-students-were-...
1•akyuu•1m ago•0 comments

Chatbots can now stream generative UI with JSON-render

https://community.vercel.com/t/chat-sdk-agents-can-now-stream-generative-ui-with-json-render/1000...
1•flashbrew•1m ago•0 comments

Conversations with Tyler: Terence Tao on Proof, Beauty, and the Future of Math

https://conversationswithtyler.com/episodes/terence-tao/
1•jordanpg•2m ago•0 comments

Better Language Server Tools for LLMs

https://michaelorenstein.com/blog/better-language-server-tools-for-llms/
1•killcoder•3m ago•0 comments

Compress any LLM 3x in one click, near-lossless, in seconds

https://zenodo.org/records/24058202
2•anushka_gandhi•4m ago•0 comments

Using AI for Cybersecurity Framework 2.0 Analysis and Reporting

https://www.nist.gov/news-events/news/2026/08/seeking-public-comment-using-artificial-intelligenc...
1•teleforce•4m ago•0 comments

Apple is killing its Support Community forum next week

https://www.theverge.com/tech/1031507/apple-community-support-forum-shutting-down
2•saikatsg•4m ago•0 comments

Prepare for the AI Apocalypse Like You'd Prepare for a Snowstorm

https://www.theatlantic.com/technology/2026/11/how-to-prepare-for-the-ai-apocalypse/689367/
1•fortran77•4m ago•1 comments

A new synthesis for the field of open-endedness

https://www.lila.ai/news/a-new-synthesis-for-the-field-of-open-endedness
1•torutofu•5m ago•0 comments

Analysis of 366,845 requests for claude.json and .cursor/mcp.json

https://honeylabs.net/blog/mass-scanners-ai-assistant-configs
1•speckx•5m ago•0 comments

Proof by OpenAI of the Existence of Quantum Yang-Mills Theory [pdf]

https://www.kitp.ucsb.edu/sites/default/files/3rd-Statement-About-Quantum-YangMills-Theory_Nov-9.pdf
2•momeara•6m ago•0 comments

Prompting Claude Fable 5.2

https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-fable-5-2
2•waximabbax•7m ago•0 comments

Going All-In on Sorbet

https://docspring.com/blog/posts/going-all-in-on-sorbet/
1•thunderbong•7m ago•0 comments

Smudgy: The PROLED XDR look, for free

https://tiptop.software/smudgy/
1•cdrnsf•8m ago•0 comments

Show HN: LLM Crisis Triage Audit – Deterministic state-space governance

https://github.com/Recursive-Logic-Core/llm-crisis-triage-audit
1•ArchMMM•8m ago•0 comments

Researchers are using Grand Theft Auto to make roads safer

https://www.bbc.com/future/article/20261110-grand-theft-auto-video-games-are-being-harnessed-to-m...
1•saikatsg•8m ago•0 comments

Not self-hosting is irresponsible

https://www.windmill.dev/blog/not-self-hosting-is-irresponsible
5•rubenfiszel•10m ago•0 comments

What happens to mathematics when AI becomes an oracle?

https://arstechnica.com/science/2026/11/what-happens-to-mathematics-when-ai-becames-an-oracle/
1•Brajeshwar•10m ago•0 comments

New Indian mega library rocked by scandal over 'AI-generated books'

https://www.bbc.co.uk/news/articles/c54gne3plvrxo
1•Brajeshwar•10m ago•0 comments

I asked every TV manufacturer 17 questions about how they spy on you

https://www.theverge.com/tech/1012372/tv-privacy-acr-questions
4•Brajeshwar•10m ago•0 comments

Stream UI with your agents on Slack

https://vercel.com/changelog/json-render-and-chat-sdk-agents
1•flashbrew•10m ago•0 comments

Ask HN: Anybody using their own AI harness as well?

1•madprops•12m ago•0 comments

The Quiet Part – a 9-minute narrated piece on what AI does to jobs

https://thequietpart.ai/?src=hn
2•BlueOctave•12m ago•0 comments

Understanding Lateral Joins in PostgreSQL

https://www.cybertec-postgresql.com/en/understanding-lateral-joins-in-postgresql/
1•b-man•12m ago•0 comments

How to celebrate Pepero Day, Korea's sweetest tradition

https://www.koreatimes.co.kr/lifestyle/travel-food/20261109/how-to-celebrate-pepero-day-koreas-sw...
1•neom•15m ago•0 comments

Software Finds Its Natural Size

https://arbesman.substack.com/p/software-finds-its-natural-size
2•arbesman•15m ago•0 comments

Show HN: Hubzoid – Turns a folder of Markdown into an AI agent your team can use

https://github.com/hubzoid/hubzoid
2•KakshilShah•15m ago•0 comments

The primary function of ads is to torture the public

https://idiomdrottning.org/ad-tier
2•speckx•16m ago•0 comments

Show HN: Whisperstream – Free, open-source local dictation for Windows

https://whisperstream.io
2•djacksondev•18m ago•0 comments