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

Comments

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

Algolia Hacker News Search GitHub Project Archived

https://github.com/algolia/hn-search
1•maguszin•3m ago•0 comments

MetaFilter Shifting to Volunteer Moderation

https://metatalk.metafilter.com/26866/Volunteer-Moderation-at-MetaFilter
1•CharlesW•4m ago•0 comments

Microsoft AI boss issues 18-month warning to all white-collar workers

https://www.themirror.com/news/us-news/microsoft-ai-boss-issues-18-1684833
1•randycupertino•4m ago•0 comments

CSLib: The Lean Computer Science Library

https://arxiv.org/abs/2602.04846
1•matt_d•4m ago•0 comments

The Proof – Andrew Wiles' Quest to Prove Fermat's Last Theorem

https://archive.org/details/NOVATheProof
1•ionychal•5m ago•0 comments

Guardrail Coding – Fuzzycomputer.com

https://www.fuzzycomputer.com/posts/guardrail-coding
1•stewartjarod•5m ago•0 comments

Dan Gelbart – Solving Impossible Problems for Fun and Profit

https://www.youtube.com/watch?v=UTgrWmOk4q8
1•mhb•6m ago•0 comments

Show HN: Baseline – enforce team decisions ESLint can't express

https://github.com/stewartjarod/baseline
1•stewartjarod•6m ago•1 comments

Ask HN: Reliable security best practices for Clawbot and Claude Code

1•aavci•6m ago•0 comments

Data Released on All Pre-Games Anti-Doping Tests

https://www.medscape.com/viewarticle/olympics-data-released-all-pre-games-anti-doping-tests-2026a...
1•wjb3•6m ago•0 comments

The Coming Age of Genetic Doping in Olympic Sport

https://www.medscape.com/viewarticle/coming-age-genetic-doping-olympic-sport-2026a10004yp
2•wjb3•11m ago•0 comments

Show HN: Building a Low-Power Cognitive Architecture That Learns Without LLMs

https://blog.brojo.ai/daimon-building-a-low-power-cognitive-architecture-that-learns-without-llms/
1•bojo•12m ago•0 comments

What Not Reading Does to Your Writing

https://countercraft.substack.com/p/what-not-reading-does-to-your-writing
3•crescit_eundo•14m ago•0 comments

Show HN: VS Code extension for dotenv-diff

https://github.com/Chrilleweb/vscode-dotenv-diff
2•chrilleweb•18m ago•0 comments

Show HN: mkpw.dev – client-side password generator (no deps, no tracking)

https://mkpw.dev/
1•goforrusty•18m ago•0 comments

Show HN: 5 live AI voice agents you can call right now (real phone numbers)

https://txted.ai/
1•txted_ai•19m ago•0 comments

Who Benefits from War?

https://old.reddit.com/r/explainlikeimfive/comments/1d0g1vr/eli5_how_is_war_profitable/
2•downboots•21m ago•0 comments

Naked Man Festival 2027

https://en.japantravel.com/okayama/naked-man-festival/1475
2•thunderbong•21m ago•0 comments

Dental Disease May Undermine Elite Athletic Performance

https://www.medscape.com/viewarticle/dental-disease-performance-risk-2026a10005ea
3•wjb3•22m ago•0 comments

Open-source is the new moat

1•umairnadeem123•22m ago•2 comments

Claude Code Templates

https://github.com/davila7/claude-code-templates
1•tejonutella•23m ago•0 comments

Show HN: Glupe, An open-source CLI that turns COBOL to Python/Rust via Intent

1•alonsovm•25m ago•0 comments

Living in the Inflection Point

https://brittanyellich.com/living-in-the-inflection-point/
1•mooreds•26m ago•0 comments

Show HN: I tracked 800 Reddit URLs on Google – 56% die within 48h

2•Ninsew•27m ago•0 comments

Show HN: I made repos self-aware for AI coding agents

https://github.com/krzysztofdudek/Yggdrasil
1•krzysztofdudek•31m ago•0 comments

I built Delta Neutral, a self-hosted concentrated liquidity hedge rebalancer

https://blog.carter2099.com/posts/6
1•carter2099•31m ago•0 comments

Show HN: I Built a Free Keyword Research Tool

https://www.statflows.com/keyword-research
1•UnicornSHARP•33m ago•0 comments

Discovered a malicious Chrome extension targeting Apple App Store developers

https://blog.toborrm.com/findings/boostkey.html
2•toborrm9•36m ago•1 comments

We installed a single turnstile to feel secure

https://idiallo.com/blog/installed-single-turnstile-for-security-theater
2•firefoxd•37m ago•0 comments

Music Discovery

https://www.secondtrack.co/
7•eriatarka•38m ago•4 comments