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/

Chicago Fed launches a new consumer sentiment composite index

https://www.marketplace.org/story/2026/07/06/why-is-consumer-sentiment-disconnected-from-consumer...
1•toomuchtodo•1m ago•1 comments

What Is Browser Fingerprinting?

https://medium.com/@thesuperrepemail/what-is-browser-fingerprinting-2c7f1a419b09
1•rajsuper123•5m ago•0 comments

Descent – EGA point-and-click game set inside a neural network's hidden layers

https://schwarzarno.itch.io/descent
1•schwarzarno•7m ago•0 comments

Tenda firmware (multiple versions) contains hidden authentication backdoor

https://kb.cert.org/vuls/id/213560
1•miniBill•8m ago•0 comments

Show HN: Fortress – a stealth Chromium so your agents stop getting blocked

https://github.com/tiliondev/fortress
6•arhamshahrier•9m ago•0 comments

GPTZero to Join Superhuman

https://gptzero.me/news/preserving-whats-human/
1•SpyCoder77•15m ago•0 comments

See What's Next for Firefox

https://www.firefox.com/en-US/whatsnext/
4•birdculture•15m ago•0 comments

Honey, We Bought an AI Story

https://www.bona-books.com/news/we-bought-an-ai-story
1•bigiain•16m ago•1 comments

Lead–Crime Hypothesis

https://en.wikipedia.org/wiki/Lead%E2%80%93crime_hypothesis
1•chistev•18m ago•1 comments

Anthropic Expands In Manhattan, Part of an AI Boom in New York

https://www.nytimes.com/2026/07/07/nyregion/anthropic-ai-boom-nyc.html
2•jbegley•19m ago•0 comments

Structure and Interpretation of Computer Programs Video Lectures

https://ocw.mit.edu/courses/6-001-structure-and-interpretation-of-computer-programs-spring-2005/v...
1•gjvc•19m ago•0 comments

Open_pg_tde: Transparent Data Encryption for PostgreSQL

https://github.com/commandprompt/open_pg_tde
1•linuxhiker•22m ago•1 comments

Anthropic files lawsuit against Abnormal

https://twitter.com/evanreiser/status/2074577564006519020
2•warthog•24m ago•0 comments

PixelSat I Software Part 1: Comms System

https://www.projectpixelorbital.com/software-1/
1•aadishv•25m ago•0 comments

Google Search lets creators know more about their reach

https://www.theverge.com/tech/961955/google-search-console-reach-platform-properties
1•herbertl•25m ago•0 comments

Show HN: Perks Reminder – open-source tracker for expiring card benefits

https://github.com/lifan-builds/perks-reminder
1•lifan-builds•26m ago•0 comments

Tried a new VSCode Agent tonight. Like it. Thought I'd pass it on

https://buildbygrok.gumroad.com/l/BuildwithChat
1•BigJimTom•28m ago•0 comments

Show HN: A LinkedIn / X CLI for your agents

https://usesocial.dev
1•knrz•29m ago•0 comments

Show HN: PGP made convenient (encrypted at rest with passkeys)

https://chromewebstore.google.com/detail/pgp-tools-encrypt-decrypt/pgpcdgggohpbombhkffjoiiafdlfcpgp
1•acorn221•30m ago•1 comments

A 13th-Century Enumeration Algorithm, Ignored for 700 Years

https://blog.klipse.tech/aboulafia/2026/07/06/a-13th-century-enumeration-algorithm-ignored-for-70...
2•viebel•31m ago•0 comments

Free 100M AI tokens for Kimi and MiniMax models

https://inference.dahl.global/
4•litppicho•32m ago•4 comments

The "Merge" with AI Has Begun

https://www.thenation.com/article/society/the-merge-with-ai-has-already-begun/
2•petethomas•36m ago•1 comments

I had to give a wrong answer to get the job (2017)

https://dewitters.com/i-had-to-give-a-wrong-answer-to-get-the-job/
1•downbad_•39m ago•0 comments

Ask HN: Please give us an option to hide our username in the upper right corner

1•swingandamiss•40m ago•3 comments

Designing Firefox for the Future

https://blog.mozilla.org/en/firefox/new-firefox-design/
2•iBelieve•43m ago•1 comments

Most slopcode projects are abandoned and deleted within months of release

https://www.osnews.com/story/145469/most-slopcode-projects-are-abandoned-and-deleted-within-month...
6•backlit4034•45m ago•1 comments

Ask HN: How do you keep documentation up to date with AI generated code?

2•ghosts_•46m ago•1 comments

Show HN: Free Mermaid Diagram Editor

https://moxiedocs.com/mermaid-diagram-editor
2•ghosts_•47m ago•0 comments

How OpenAI Delivers Low-Latency Voice AI for 900M Users

https://blog.bytebytego.com/p/how-openai-delivers-low-latency-voice
2•gmays•50m ago•0 comments

Muse Image and Muse Video, the first media generation models developed by Meta

https://twitter.com/AIatMeta/status/2074577662840832382
3•jeudesprits•53m ago•0 comments