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/

Samsung Unions Approve Pay Deal That Highlights Inequality of A.I. Age

https://www.nytimes.com/2026/05/27/world/asia/samsung-ai-profit-bonus-workers.html
1•reaperducer•35s ago•0 comments

Incident with Pull Requests, Issues, Git Operations and API Requests

https://www.githubstatus.com/incidents/xy1tt3hs572m
3•maxnoe•1m ago•2 comments

Everything Is Broken (2014)

https://medium.com/message/everything-is-broken-81e5f33a24e1
1•surprisetalk•2m ago•0 comments

GitHub bans researcher for exploits; expert calls it vindictive

https://www.tomshardware.com/tech-industry/cyber-security/microsofts-github-bans-security-researc...
1•RandomGerm4n•3m ago•0 comments

Marathons and ultramarathons may be linked to colon cancer

https://www.washingtonpost.com/wellness/2026/05/21/marathons-ultramarathons-may-be-linked-colon-c...
1•Markoff•4m ago•1 comments

High-Speed Robot Hand Demonstrates Dexterity and Skillful Manipulation(2009)

https://www.hizook.com/high-speed-robot-hand-demonstrates-dexterity-and-skillful-manipulation/
1•o4c•4m ago•1 comments

Go Ask Alice Why Tech Startups Are Spending Big on Hype Videos

https://www.nytimes.com/2026/05/27/technology/ai-startups-videos-marketing.html
1•reaperducer•6m ago•0 comments

'Popular' Names Aren't as Popular as They Used to Be

https://namedaisy.com/blog/popular-names-arent-as-popular-as-they-used-to-be
1•xoobdev•6m ago•0 comments

Multi-stage distributed query execution in ClickHouse Cloud

https://clickhouse.com/blog/multi-stage-distributed-query-execution-clickhouse-cloud
1•berlianta•7m ago•0 comments

XLIDE: VBA without excel

https://github.com/WilliamSmithEdward/xlide_vscode
1•sts153•8m ago•0 comments

Agentic AI Flywheels

https://www.newsletter.swirlai.com/p/agentic-ai-flywheels
2•AurimasGr•9m ago•0 comments

Show HN: Unspaghettit – executable behavior specs for AI coding agents

https://github.com/lyriks-io/unspaghettit
3•D3F•10m ago•0 comments

Stateful Inference for Low-Latency Multi-Agent Tool Calling

https://arxiv.org/abs/2605.26289
2•logotype•11m ago•0 comments

Brockovich Data Center Reporting

https://www.brockovichdatacenter.com/
1•giuliomagnifico•11m ago•0 comments

WikiMedia Foundation Community Tech team has been disbanded, engineers laid off

https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(WMF)
1•vintagedave•13m ago•0 comments

Data vs. Drama–The 20-Year Legacy of Al Gore's Climate Warnings

https://www.newsweek.com/data-vs-drama-the-20-year-legacy-of-al-gores-climate-warnings-opinion-11...
2•bilsbie•13m ago•0 comments

Understanding Age Assurance Accuracy

https://educatedguesswork.org/posts/age-assurance-accuracy/
1•ibobev•13m ago•0 comments

Spring Lisp Game Jam 2026

https://andreyor.st/posts/2026-05-24-spring-lisp-game-jam-2026/
1•ibobev•14m ago•0 comments

How many arguments should a function have in Python?

https://en.andros.dev/blog/43e638f4/how-many-arguments-should-a-function-have-in-python/
1•ibobev•14m ago•0 comments

IBM Quantum Computing Summer School Registration Open

https://www.ibm.com/quantum/blog/qiskit-summer-school-2026
2•phasefactor•14m ago•1 comments

Germany, Spain Push Back on Europe's Plans to Ban Huawei Gear

https://www.bloomberg.com/news/articles/2026-05-27/germany-spain-push-back-on-europe-s-plans-to-b...
2•thm•15m ago•0 comments

Private Equity Bought America's Essential Services

https://rubbishtalk.com/economy/how-private-equity-bought-americas-essential-services/
4•NoRagrets•16m ago•0 comments

Show HN: Gave Claude Code ADHD.. Now it thinks 3x better

https://adhdstack.github.io/
2•udit_50•16m ago•1 comments

One Developer, Two Dozen Agents, Zero Alignment

https://maggieappleton.com/zero-alignment
3•surprisetalk•16m ago•0 comments

Plant-based meats 'politicized'; Beyond Meat takes plunge into protein drinks

https://www.washingtonpost.com/food/2026/05/26/with-plant-based-meats-politicized-beyond-takes-pl...
2•bookofjoe•21m ago•2 comments

Grid global: The most powerful global dollar account

https://grid.lightspark.com
2•janandonly•21m ago•0 comments

Ionizing radiation and melanism in Chornobyl tree frogs

https://pmc.ncbi.nlm.nih.gov/articles/PMC9488684/
1•AFF87•22m ago•0 comments

Self-Consent: When Users Take Control

https://silencelaboratories.com/blog/self-consent-the-next-frontier-for-financial-data-sharing
1•eustoria•22m ago•0 comments

The Large Gilded Coffin of King Tutankhamun

https://egymonuments.gov.eg/news/gilded-coffin-of-king-tutankhamun/
1•brudgers•23m ago•0 comments

Curated collection of A/B test results from best-in-class apps

https://abtest.design/
1•eustoria•24m ago•0 comments