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•6mo ago

Comments

bastawhiz•6mo ago
Is this a problem that people actually have?
xeromal•6mo ago
Fun side project man!
primitivesuave•6mo 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•6mo 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•6mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•6mo 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•6mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Issue Tracker for Claude Code

https://issue-queue.readthedocs.io/en/latest/llm_agents.html#example-claude-code-integration
1•rodmena•1m ago•0 comments

ICE Arrests the Press

https://petapixel.com/2025/11/24/photojournalist-arrested-covering-ice-protest-as-authorities-imp...
1•cypherpunk666•1m ago•1 comments

The lifespan of the Öresund Bridge can be doubled

https://www.lunduniversity.lu.se/article/new-research-lifespan-oresund-bridge-can-be-doubled
1•gnabgib•2m ago•0 comments

Create your own AI version and scale yourself

https://www.myclone.is/blog/ai-digital-personas-revolutionizing-services/
1•rishikksh20•12m ago•0 comments

Rock Paper Scissors Is a Game of Skill

https://collisteru.substack.com/p/rock-paper-scissors-is-a-game-of
1•Collisteru•15m ago•0 comments

Comparing xeus-Haskell and ihaskell kernels

https://www.datahaskell.org/blog/2025/11/25/a-tale-of-two-kernels.html
1•mchav•16m ago•1 comments

The Protocol Labs Vision for Neurotech and Neuro AI [video]

https://www.youtube.com/watch?v=LKYSzA9scns
1•surprisetalk•16m ago•0 comments

Steel composites integrating diamonds and carbon nanotubes

https://akshatjiwannotes.blogspot.com/2025/10/steel-composites-integrating-diamonds.html
1•akshatjiwan•16m ago•0 comments

Wispcraft

https://kaverennedy.substack.com/p/wispcraft
1•surprisetalk•16m ago•0 comments

So Long Firefox, Hello Vivaldi

https://hackaday.com/2025/11/25/so-long-firefox-part-two/
2•thunderbong•22m ago•0 comments

E-cigs during pregnancy impairs uterine artery blood flow and placental function

https://academic.oup.com/toxsci/advance-article-abstract/doi/10.1093/toxsci/kfaf161/8325239?redir...
1•XzetaU8•24m ago•0 comments

Cartesia TTS Partner with Tencent RTC – Demo

https://sc-rp.tencentcloud.com:8106/t/pA
1•shuoxin-wang•24m ago•0 comments

Show HN: Cloakly – Hide notes and apps during coding interview screen-share

https://www.getcloakly.com
1•jaygood•25m ago•1 comments

Oxycodone Uses, Dosage, Side Effects, and Safety Warnings

https://sites.google.com/view/medixway-pharmacy/medixway-trusted-source-for-every-prescription/
1•fffssdsd•26m ago•1 comments

Show HN: An Open-Source, Local-First Agent Framework in Rust

http://github.com/liquidos-ai/autoagents
1•saivishwak•31m ago•0 comments

A Tiny TypeScript Rant

https://mayberay.bearblog.dev/a-tiny-typescript-rant/
1•mugamuga•32m ago•0 comments

CVE-2025-66021: in OWASP Java HTML Sanitizer

https://nvd.nist.gov/vuln/detail/CVE-2025-66021
1•malviyamukul•32m ago•1 comments

Event-Driven Architecture Is Not Event Sourcing: A Necessary Distinction

https://buster.github.io/stuff/eventsourcing.html#
2•buster•37m ago•0 comments

Searching for "abstract" on duck changes the logo into an abstract version of it

https://duckduckgo.com/?q=abstract
1•shujito•37m ago•0 comments

Could a Brain Parasite Explain the MAGA Movement? (Satire)

https://usop.substack.com/p/usop-day-11
2•richardatlarge•41m ago•1 comments

How a US home insurance fix is becoming a problem

https://www.reuters.com/graphics/USA-ECONOMY/FAIR-INSURANCE/lgpdqnqamvo/
3•botacode•51m ago•1 comments

ThunderAI: ChatGPT, Gemini, Ollama in Thunderbird

https://addons.thunderbird.net/en-CA/thunderbird/addon/thunderai/
1•NourEddineX•53m ago•0 comments

Spleen Monospaced Bitmap Fonts

https://github.com/fcambus/spleen
1•keyle•55m ago•0 comments

Super fast aggregations in PostgreSQL 19

https://www.cybertec-postgresql.com/en/super-fast-aggregations-in-postgresql-19/
4•jnord•57m ago•0 comments

Insulin Stored at Room Temperature Does Not Lose Potency (2023)

https://www.healthline.com/health-news/safe-insulin-storage-room-temperature
1•walterbell•1h ago•0 comments

GenAI for Engineers, What's Real, What's Not and What's Coming [video]

https://www.youtube.com/watch?v=BaJ9ROVc2Lk
1•blizow•1h ago•0 comments

LLMs excel at programming–how can they be so bad at it?

https://blog.genesmindsmachines.com/p/llms-excel-at-programminghow-can
3•DeathArrow•1h ago•1 comments

Magnetic Induction Heater Using Flywheel with Neodymium Magnets [video]

https://www.youtube.com/watch?v=jPlyGGVu38U
1•itronitron•1h ago•0 comments

Five books to read this winter

https://www.gatesnotes.com/home/home-page-topic/reader/holiday-books-2025
6•vidyesh•1h ago•1 comments

Topological Turning Points Across Human Lifespan

https://www.nature.com/articles/s41467-025-65974-8
1•DrierCycle•1h ago•0 comments