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/

Plane slams into Beijing's tallest building, sends debris raining down [video]

https://www.youtube.com/watch?v=YNJYR_HE8uo
1•Imustaskforhelp•1m ago•0 comments

Search SDK – Integrate web search into agents

https://search-sdk.dev/
1•haxzie•4m ago•0 comments

Sequence Modeling with CTC

https://distill.pub/2017/ctc/
1•diginova•5m ago•0 comments

WebSite Grader and Analytics for Small Businesses

https://stackra.app/
1•LBeck84•6m ago•0 comments

Show HN: PhoneCode: Local-First ADE Running Natively on Android

https://github.com/dttdrv/phonecode
1•dttdrv•7m ago•0 comments

A model-free runtime that holds photonic/quantum hardware steady under drift

https://compute.neophotonics.ca/
1•quantumbum•11m ago•0 comments

Higher rate limits on the Claude API

https://platform.claude.com/docs/en/api/rate-limits
1•thedebuglife•14m ago•0 comments

Show HN: Cyclearchive.com – search vintage cycling magazines

https://cyclearchive.com/search/
1•alastairr•15m ago•0 comments

How to evaluate multimodal VLMs for your video use case

https://labs.videodb.io/research/how-to-evaluate-multimodal-vlms-for-your-video-use-case
1•notTechy•16m ago•0 comments

Show HN: Brytlog – AI logger

https://github.com/Guy-Sela/brytlog
1•guy-sela•23m ago•0 comments

The US lock of the Web – ache

https://ache.one/notes/the-us-lock-of-the-web
3•abdelhousni•25m ago•0 comments

World Cup fans frustrated by 'confusing and expensive' tipping culture in US

https://www.bbc.com/news/articles/clyxgjykx7lo
7•theanonymousone•26m ago•0 comments

I owe my life to a 1913 road rage incident

https://blog.plover.com/2026/06/27/#andor
2•Tomte•27m ago•0 comments

Early Computer Viruses Spread Before the Internet

https://comuniq.xyz/post?t=1328
1•01-_-•29m ago•0 comments

Ask HN: Has Ilya Sutskever spoken publicly lately?

4•aurenvale•29m ago•0 comments

The Calculator Discipline – AI-Assisted Disclosure Hallucinations

https://zenodo.org/records/20393083
1•ethical•36m ago•0 comments

Researchers have developed pixels that can emit and analyse light together

https://ethz.ch/en/news-and-events/eth-news/news/2026/06/a-new-type-of-pixel.html
2•tspng•38m ago•1 comments

Decline in IQ linked to frequent or dependent use of cannabis use in youth

https://www.cambridge.org/core/journals/psychological-medicine/article/intelligence-quotient-decl...
6•vixen99•40m ago•1 comments

Om interviews Brunello Cucinelli (2015)

https://om.co/2015/04/27/brunello-cucinelli-2/
2•tosh•44m ago•0 comments

US Military conducts strikes on Iran after attack on ship in Strait of Hormuz

https://twitter.com/BBCBreaking/status/2070610019578511419
3•aurenvale•44m ago•0 comments

NLNet Labs LLM Policy

https://nlnetlabs.nl/llm-policy/
3•birdculture•47m ago•1 comments

Clockwork, a browser engine of intermeshing gears and impossible motion

https://sand-morph.up.railway.app/clockwork
1•echohive42•48m ago•0 comments

Germany urges EU to suspend methane rules after US pressure

https://www.ft.com/content/c5c97c40-6afe-4a22-a9b8-aea456b85326
5•littlexsparkee•52m ago•1 comments

How to Write an Effective Software Design Document · Refactoring English

https://refactoringenglish.com/excerpts/write-an-effective-design-doc/
1•mpweiher•56m ago•0 comments

Gstack

https://github.com/garrytan/gstack
1•grajmanu•59m ago•0 comments

Russian hackers were behind $2.5B hack of Jaguar Land Rover

https://techcrunch.com/2026/06/26/russian-hackers-were-behind-2-5-billion-hack-of-jaguar-land-rov...
3•01-_-•59m ago•0 comments

Free-For.dev

https://github.com/ripienaar/free-for-dev
1•grajmanu•1h ago•0 comments

Git Push No-Mistakes

https://github.com/kunchenguid/no-mistakes
1•grajmanu•1h ago•0 comments

Digital Donkeys: An Allegory for the Algorithmic Feed

https://om.co/2026/05/25/we-are-living-in-pinocchios-world/
2•merqurio•1h ago•0 comments

Om Malik, Whose Blog Shaped How Silicon Valley Saw Itself, Dies at 59

https://www.nytimes.com/2026/06/26/technology/om-malik-dead.html
11•philip1209•1h ago•1 comments