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•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/

Caligra c100 Developer Terminal – Industrial design of computer hardware

https://www.pentagram.com/work/caligra-c100-developer-terminal
1•kaizenb•3m ago•0 comments

NREL best research cell (photovoltaic) efficiency chart [pdf]

https://nrel.gov/media/docs/libraries/pv/cell-pv-eff.pdf
1•walrus01•6m ago•1 comments

Lunar Impact Flashes NASA Artemis

https://nbsla.ca/lunar-impact-flashes-nasa-artemis/
1•01-_-•6m ago•0 comments

Intel shares soar on Apple chip deal report

https://www.cnbc.com/2026/05/08/intel-stock-apple-chip-deal.html
2•01-_-•7m ago•0 comments

Rakudo – Raku on MoarVM, JVM, and JavaScript

https://github.com/rakudo/rakudo
2•tosh•16m ago•0 comments

All my clients wanted a carousel, now it's an AI chatbot

https://adele.pages.casa/md/blog/all-my-clients-wanted-a-carousel-now-it-s-an-ai-chatbot.md
2•edent•17m ago•0 comments

What Color Is a Tennis Ball?

https://www.theatlantic.com/science/archive/2018/02/what-color-tennis-ball-green-yellow/523521/
1•thunderbong•18m ago•1 comments

Databricks Apps Tutorial: Scalable Streamlit Modular Template for Production

https://medium.com/towards-data-engineering/databricks-apps-tutorial-scalable-streamlit-modular-t...
1•protmaks•20m ago•0 comments

Mythos 'Discovered' a CVE in Its Training Data and That's Still Worrying

https://rival.security/posts/mythos-discovered-a-cve-already-in-its-training-data---and-thats-sti...
4•speckx•24m ago•0 comments

Chaos erupts as cyberattack disrupts learning platform Canvas amid finals

https://arstechnica.com/security/2026/05/chaos-erupts-as-cyberattack-disrupts-learning-platform-c...
2•joozio•28m ago•0 comments

Hobonichi Digital Planner

https://techoapp.1101.com/
1•skogstokig•31m ago•0 comments

Seedream AI image studio for global creators

https://www.doubao.photos
2•yibaoshan•33m ago•0 comments

Claude's signup workflow is terrible

2•b112•38m ago•0 comments

Sociotechnical Architecture Reviews: Understanding Teams, Not Just Artefacts

https://www.youtube.com/watch?v=Nb3xsZVqxpY
1•RebootStr•43m ago•1 comments

Notes on Incidents

https://www.seangoedecke.com/notes-on-incidents/
1•dondraper36•44m ago•0 comments

Why LLM-as-judge fails for code evaluation. Here's what works.

https://navigara.medium.com/the-story-of-navigara-how-we-built-the-performance-layer-for-modern-e...
2•alienll•55m ago•0 comments

Brightness Issue in Old S3 Graphics Cards

https://hackaday.com/2026/04/21/why-some-s3-videocards-have-a-brightness-issue/
3•networked•1h ago•0 comments

Turn any title into thumbnail, OG image or blogpost cover

https://thumbapi.dev
2•dinall•1h ago•1 comments

PWABuilder

https://pwabuilder.com/
5•Tomte•1h ago•0 comments

The Enemy (Part 4)

https://stephanrewind.itch.io/atlantic-41/devlog/1516937/the-enemy-part-4
2•ndr42•1h ago•1 comments

I Still Like Jenkins

https://til.andrew-quinn.me/posts/i-still-like-jenkins/
3•hiAndrewQuinn•1h ago•2 comments

A YouTube Music player that runs in your terminal

https://github.com/chuzcjoe/musicli
3•chuzcjoe•1h ago•0 comments

LeWorldModel: Stable End-to-End Predictive Architecture from Pixels

https://arxiv.org/abs/2603.19312
5•felineflock•1h ago•0 comments

LUKSbox: Encrypted vaults that survive the next decade

https://github.com/PentHertz/LUKSbox
9•fratellobigio•1h ago•0 comments

Show HN: I made an IPv6 proxy for GitHub

https://githubv6.com/
2•immibis2•1h ago•0 comments

Cherry Kearton – groundbreaking 19th-century nature photographer

https://www.bbc.com/future/article/20260507-cherry-kearton-the-eccentric-influence-on-a-young-sir...
3•jeffwass•1h ago•1 comments

I Will Never Use AI to Code

https://antman-does-software.com/i-will-never-use-ai-to-code-or-write
41•ishanz•1h ago•44 comments

Poka-Yoke

https://en.wikipedia.org/wiki/Poka-yoke
7•the-mitr•1h ago•1 comments

Anthropic weighs fundraising for near $1T valuation, FT reports

https://www.reuters.com/technology/anthropic-weighs-fundraising-near-1-trillion-valuation-ft-repo...
5•giuliomagnifico•1h ago•0 comments

Young people explicitly banned from openSUSE – urgent call for reversal

https://lists.opensuse.org/archives/list/project@lists.opensuse.org/message/6PU6JU2IGKDANYNN3KIXD...
13•robin_reala•1h ago•3 comments