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/

Swinth – By Sung J. Woo

https://www.goto10retro.com/p/the-history-of-swinth
1•rbanffy•33s ago•0 comments

Jeff Dean: The 1% Rule for Building in AI [video]

https://www.youtube.com/watch?v=CxXgV54KzpQ
2•Anon84•56s ago•0 comments

The Buzzword-Driven Development Manifesto (AI Edition)

https://github.com/gabert/buzzword-driven-development
1•gabert•1m ago•0 comments

Perseids Meteor Shower

https://science.nasa.gov/solar-system/meteors-meteorites/perseids/
1•wslh•1m ago•0 comments

Reviewing the evidence on worker retraining programs

https://www.anthropic.com/research/reviewing-the-evidence-on-worker-retraining-programs
1•neversaydie•2m ago•0 comments

Thoughts on "SIMD in Pure Python" – purplesyringa's blog

https://purplesyringa.moe/blog/thoughts-on-simd-in-pure-python/
1•rbanffy•3m ago•0 comments

Innovations of SolidJS 2

https://www.brenelz.com/posts/innovations-of-solid-2/
1•unlog•4m ago•0 comments

Iluvatar – classifies an app idea into CS terms before any tech gets named

https://github.com/RudVlad473/iluvatar
1•RudVlad473•4m ago•0 comments

Python Type System and Tooling Survey 2026

https://www.surveymonkey.com/r/python_typing
1•rbanffy•5m ago•0 comments

Show HN: Pixy, visual editor for coding agents, like Figma on your live site

https://pixydesignapp.com/
2•astroscout•5m ago•0 comments

Intelligence CIOs Warn AI Agents Could Accelerate Cyberattacks

https://govciomedia.com/intelligence-cios-warn-ai-agents-could-accelerate-cyberattacks/
3•jethronethro•6m ago•0 comments

TTT-Discover: Learning to Discover at Test Time

https://ucbskyadrs.github.io/blog/ttt/
1•matt_d•6m ago•0 comments

The little-known winstart.bat batch file

https://devblogs.microsoft.com/oldnewthing/20260811-00/?p=112605
1•supermatou•12m ago•0 comments

How do I permanently disable Google Photos pop-up prompt to backup my photos?

https://support.google.com/photos/thread/256212140/how-do-i-permanently-disable-google-photos-pop...
2•dt3ft•13m ago•1 comments

What We Learned by Reproducing 2,200 papers from ICML

https://huggingface.co/blog/icml-2026-open-reproductions
1•sbulaev•13m ago•0 comments

RIP Claude

https://randsinrepose.com/archives/rip-claude/
1•Tomte•14m ago•0 comments

Person Hides Prompt Injection in Legal Filing Telling AI to Side with Them

https://www.404media.co/person-hides-prompt-injection-in-legal-filing-telling-ai-to-side-with-them/
5•hampelm•16m ago•0 comments

Show HN: MLTraining Free AI/ML training resources for everyone

https://mltraining.org/
1•Cagritemel•18m ago•0 comments

Ask HN: How can you tell a site/app is vibe coded?

2•gkolli•18m ago•1 comments

OpenAI hires new CRO as executive shake-up continues

https://techcrunch.com/2026/08/13/openai-hires-new-cro-as-executive-shake-up-continues/
1•datakan•18m ago•0 comments

Nine AI demo-agent landing pages: a 30-point conversion benchmark

https://w24bd0kvaqatl5q4d67cvoiga5ccskw9.pastehtml.dev/
1•AuditForgeHQ•19m ago•0 comments

Defining Taste

https://twitter.com/mitchellh/status/2070665127331037290
1•tosh•20m ago•1 comments

Mark Zuckerberg doesn't understand how to live

https://www.theverge.com/ai-artificial-intelligence/977623/mark-zuckerberg-ai-manifesto-dim-vision
1•elorant•21m ago•0 comments

I wrote an AI textbook – how long until AI can do it better?

https://www.interconnects.ai/p/i-wrote-an-ai-textbook-how-long-until
1•sebg•22m ago•0 comments

Show HN: Cadre.rocks A local-first board for orchestrating coding agents

https://cadre.rocks/
1•l-crispr•22m ago•0 comments

Why do we have allergies?

https://www.bbc.com/future/article/20150409-why-do-we-have-allergies
1•geneticdrifts•23m ago•0 comments

Fast Mojo implementation of classic Word2Vec algorithm

https://github.com/benjismith/word2vec-mojo
1•benjismith•24m ago•1 comments

Microsoft Scales Back in China, Shutting 15 Sites in Five Years

https://en.sedaily.com/international/2026/08/13/microsoft-scales-back-in-china-shutting-15-sites-...
1•ilamont•30m ago•0 comments

Scale Your AI Revenue – Not Your Cloud Bill

https://acefleet.dev/
1•flyingfishisme•31m ago•3 comments

Three Silent Failures Between You and Sidecar Injection

https://pandocore.io/blog/sidecar-injection-silent-failures
1•eaferstl•32m ago•0 comments