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/

CanYouCalculate

https://canyoucalculate.com
1•sauhard121•57s ago•0 comments

Porting Ytdlp to Bun (Ytdlb)

https://yamada-blog.pages.dev/blog/0007/
1•curliness•1m ago•0 comments

Software supply-chain attacks are no longer rare events

https://www.wired.com/story/teampcp-software-supply-chain-attack-spree-github/
1•latentframe•1m ago•0 comments

What is Git made of? (2022)

https://zserge.com/posts/git/
1•vinhnx•4m ago•0 comments

RLS sounds great until it isn't

https://planetscale.com/blog/rls-sounds-great-until-it-isntp
1•eigenBasis•4m ago•0 comments

Jira Is Turing-Complete

https://seriot.ch/computation/jira.html
1•vinhnx•4m ago•0 comments

Show HN: Live AI music sequencing agent

https://pretzel.shukant.com/?nickname=Anonymous&role=stage
1•shukantpal•5m ago•0 comments

A Cattle Ranch Is Doing What Ivy League Colleges Can't

https://www.nytimes.com/2026/05/20/opinion/deep-springs-college-ivy-league-education.html
1•gmays•6m ago•0 comments

The Eternal Sloptember

https://geohot.github.io//blog/jekyll/update/2026/05/24/the-eternal-sloptember.html
1•razin•11m ago•0 comments

My friend found idle NAT gateways his team said didn't exist

https://getnable.com/
1•chaandannn•16m ago•0 comments

AI Interpretability Is a Revolutionary Skill

https://www.outcryai.com/research/the-dark-between-the-stars
1•micahwhite•17m ago•1 comments

High-efficiency multi-scale holographic volumetric 3Dprinting with a phase light

https://www.nature.com/articles/s41377-026-02331-4
1•anikoghosyan•19m ago•0 comments

PaaS Platfrom to Deploy Apps

https://nept.cloud
1•nazmussamir•26m ago•0 comments

Command A+: Making sovereign agentic capabilities available to all

https://cohere.com/blog/command-a-plus
1•offbyone42•27m ago•0 comments

Splinter Cell veteran says realistic modern lighting has screwed up stealth game

https://www.rockpapershotgun.com/splinter-cell-veteran-says-realistic-modern-lighting-has-screwed...
3•Tomte•28m ago•0 comments

Weight loss drugs could save airlines money on fuel as Americans slim down

https://www.cbsnews.com/news/weight-loss-drugs-glp1s-airlines-fuel-costs/
1•mattas•33m ago•1 comments

Everlane Finalizes Sale to Shein

https://www.nytimes.com/2026/05/22/style/shein-everlane-fast-fashion-sustainability.html
1•lxm•35m ago•0 comments

Robotaxis Aren't as Autonomous as They Seem

https://junkoyoshidaparis.substack.com/p/robotaxis-arent-as-autonomous-as
2•mattas•36m ago•0 comments

Kids are Graduating Without Being Able to Read [video][34 mins]

https://www.youtube.com/watch?v=PcSApLcxpYc
1•Bender•39m ago•0 comments

Workspace Orchestration

https://hyperspeed.work
2•Asadsangabi•45m ago•0 comments

DeepSeek-V4 KV Cache Explained: Why 1M Context Uses Less VRAM

https://knightli.com/en/2026/05/18/deepseek-v4-kv-cache-compressed-attention/
1•vinhnx•48m ago•0 comments

Lynote Humanize Text – Open-source AI text humanization toolkit

https://github.com/lynote-ai/humanize-text
2•Danny6969•48m ago•0 comments

MetalBench – Benchmark for Apple Silicon's Metal Shading Lang

https://github.com/Lazarus-931/MetalBench
1•AlazarManakelew•55m ago•1 comments

Irb-autosuggestions: Fish-like autosuggestions for irb

https://github.com/unurgunite/irb-autosuggestions
2•thunderbong•56m ago•0 comments

GKN Aerospace – Hazard Zone Simulator - Garden Grove Chemical Tank Emergency

https://joevezzani.github.io/hazard-zone-sim/
1•palidanx•58m ago•0 comments

Sign in Nobody Wants AI Anymore [video][12 mins]

https://www.youtube.com/watch?v=FQpZdCKgc6w
2•Bender•1h ago•0 comments

AI Has Taken over Open Source

https://socket.dev/blog/ai-has-taken-over-open-source
1•ChicknNuggt•1h ago•1 comments

How to Teach AI the "Taste"

2•Jasonwang123•1h ago•1 comments

Code-mapper: Free CLI tool to reduce LLM token usage on any codebases

https://github.com/damien220/code-mapper
3•Damien_220•1h ago•0 comments

The Mystical Meaning of 369 and Its Link to Nikola Tesla

https://www.mentalfloss.com/random-facts/meaning-number-369-nikola-tesla
2•anujbans•1h ago•0 comments