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/

Braids and Dynamics Frontiers in Theory and Modelling with Scarce Data

https://people.math.wisc.edu/~thiffeault/talks/gordon2022.pdf
1•marysminefnuf•3m ago•0 comments

Tell HN: Mindie.dev is scraping emails from profiles to send spam

1•stackghost•3m ago•0 comments

Quack: A TUI for managing and cancelling active OpenCode sessions

https://github.com/SmolNero/quack
1•edgar_ortega•5m ago•0 comments

The night I dreamed of Archangel Michael

https://mylightstillshines.wordpress.com/2026/04/27/the-time-i-dreamt-of-archangel-michael/
1•jaygirl•11m ago•0 comments

Humans VS AI.IO – Update, New features and turrets

https://humansvsai.io
1•creatorcuffee•14m ago•0 comments

"Deep Generative Modeling": Introductory Examples

https://github.com/jmtomczak/intro_dgm
1•modinfo•14m ago•0 comments

Scalar and Binary Quantization for Pgvector Vector Search and Storage (2024)

https://jkatz05.com/post/postgres/pgvector-scalar-binary-quantization/
1•eigenBasis•18m ago•0 comments

A compact coding agent written in pure C, syscall tools, memory, pi-style TUI

https://github.com/douglascorrea/syscall-agent
1•douglascorrea•20m ago•0 comments

Turnspit Dog

https://en.wikipedia.org/wiki/Turnspit_dog
4•doener•28m ago•0 comments

Chinese University Student Expelled for Improper Contact with a Foreigner (2025)

https://thediplomat.com/2025/09/why-a-chinese-university-expelled-a-student-for-improper-contact-...
2•toilet•31m ago•0 comments

What A.I. Kant Do

https://www.nytimes.com/2026/05/16/opinion/ai-liberal-arts.html
1•doener•32m ago•0 comments

[deleted]

https://www.economist.com/china/2025/07/17/why-a-fling-with-a-foreigner-insults-chinas-national-d...
3•toilet•34m ago•2 comments

Paid HTTP APIs that AI agents auto-pay per-call (x402 and USDC)

https://bshelby88.github.io/x402-portfolio/
1•bshelby88•36m ago•0 comments

Make ZIP files smaller with ZIP Shrinker

https://evanhahn.com/make-zip-files-smaller-with-zip-shrinker/
1•zdw•44m ago•0 comments

FCP – Free Communication Protocol

https://fcp.md/
2•chalyi•44m ago•1 comments

Add –implementation-language flag to Bun

https://github.com/oven-sh/bun/issues/30897
1•quasigloam•1h ago•0 comments

Show HN: Built a verifiable, open-source SoC 2 readiness scanner

https://loxeai.com
1•arjavmehta•1h ago•0 comments

Show HN: I built a free PDF editor to fix Claude's horribly-generated PDFs

https://composer-sepia.vercel.app
2•chaidhat•1h ago•1 comments

Quick, Draw - can a neural network learn to recognize doodling?

https://quickdraw.withgoogle.com/
1•nilsbunger•1h ago•0 comments

Independent dev's physics code stuns PhysicsSE admin

https://physics.stackexchange.com/questions/872398/self-organizing-acceleration-and-stability-in-...
1•spenx•1h ago•1 comments

Fisker went bankrupt and owners built an open source car company from the ashes

https://electrek.co/2026/05/16/fisker-ocean-open-source-ev-story-after-bankruptcy/
20•breve•1h ago•0 comments

OpenAI seals deal in Malta to give all Maltese access to ChatGPT Plus

https://finance.yahoo.com/sectors/technology/articles/openai-seals-deal-malta-maltese-103120887.html
1•embedding-shape•1h ago•0 comments

Self-Complementary Graphs

https://mathworld.wolfram.com/Self-ComplementaryGraph.html
1•lorenzohess•1h ago•1 comments

Curl maintainer: AI security reports are no longer slop

https://daniel.haxx.se/blog/2026/04/22/high-quality-chaos/
2•notRobot•1h ago•0 comments

Show HN: Anagardens: A Daily Word Game

https://www.anagardens.com/
1•mperrotta•1h ago•0 comments

The offline desk gadget that got me to sit up straight

https://techcrunch.com/2026/05/16/the-offline-desk-gadget-that-actually-got-me-to-sit-up-straight/
1•jnord•1h ago•1 comments

Insdubai.com: Motor insurance policies, data of insured persons was exposed

https://write-ups.security-chu.com/2026/05/insdubai-data-breach-incident.html
1•news_rt•1h ago•0 comments

Quantum-COSMOLOGICAL ALIGNMENT (d=16)

https://github.com/lizbeth307/quantum-superactivation-refutation
1•NeoOdim•1h ago•0 comments

Near-Earth Asteroid 2026 JH2 close encounter: 18 May 2026

https://www.virtualtelescope.eu/2026/05/12/near-earth-asteroid-2026-jh2-extremely-close-encounter...
1•rolph•1h ago•0 comments

My Thoughts on Bun's Rust Rewrite

https://en.liujiacai.net/2026/05/16/bun-rust-port/
2•jwzxgo•1h ago•0 comments