frontpage.
newsnewestaskshowjobs

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/

We shouldn't be surprised about the PHPocalypse, as the internet is built on

https://www.theregister.com/security/2026/10/26/we-shouldnt-be-surprised-about-the-phpocalypse-as...
1•gsky•23s ago•0 comments

Show HN: ToiletPanic – A static survival guide for bathroom emergencies

https://toiletpanic-119.netlify.app
1•cast9•1m ago•0 comments

Poetry for Engineers: Of Code and Shortleaf Pine

https://spectrum.ieee.org/poetry-for-engineers-of-code-and-shortleaf-pine
1•Brajeshwar•1m ago•0 comments

Why My Dad Didn't Have a Cell Phone

https://blog.jim-nielsen.com/2026/why-dad-didnt-have-cellphone/
1•Brajeshwar•2m ago•0 comments

Markojs – declarative, HTML-based language that makes building web apps fun

https://github.com/marko-js/marko
1•modinfo•2m ago•0 comments

Show HN: JobTrace – a self hosted job tracker that sweeps across various portals

https://github.com/mr-anjaneyam/JobTrace
1•mr-anjaneyam•3m ago•0 comments

Partyline: A group voice application for Reticulum, built on LXST

https://github.com/RFnexus/partyline
1•iamnothere•7m ago•1 comments

Neocloud stocks fall as Elon Musk says 200 companies in the sector may collapse

https://www.cnbc.com/2026/10/26/neocloud-stocks-today-coreweave-nebius-iren-elon-musk.html
1•rvz•7m ago•0 comments

Show HN: Speed Demon, we give you a slow program, you make it fast, any language

https://speeddemon.dev/
1•souvlakee•8m ago•0 comments

Dexed: DX7 FM multi plaform/multi format plugin

https://github.com/asb2m10/dexed
1•modinfo•8m ago•0 comments

Why Anthropic can't afford to delay its IPO

https://www.axios.com/2026/10/21/anthropic-ipo-ai-costs
3•toomuchtodo•8m ago•0 comments

How the Claude Code team does code review

https://twitter.com/addyosmani/status/2114604912520921136
1•nadis•9m ago•0 comments

Employers use your personal data to find the lowest salary you'll accept

https://www.morningstar.com/news/marketwatch/20260401139/employers-are-using-your-personal-data-t...
3•surprisetalk•9m ago•0 comments

Wasp 0.26: parallel worktrees, wasp show, docs updates, and safer auth defaults

https://wasp.sh/blog/2026/10/23/wasp-0-26-changelog
1•matijash•9m ago•0 comments

ASML may account for up to 1.6% of Dutch economy in 2026, ING says

https://www.reuters.com/business/asml-may-account-up-16-dutch-economy-2026-ing-says-2026-10-26/
1•tartoran•10m ago•0 comments

How bad is AI hurting recruitment, from both sides?

1•remarker•10m ago•0 comments

Shader Compiler Survey

https://bkaradzic.github.io/posts/ideal-shader-compiler/
1•ibobev•12m ago•0 comments

Commodore 1600 VICmodem

https://dfarq.homeip.net/commodore-1600-vicmodem/
2•ibobev•12m ago•0 comments

How much you can make in an entry level cyber security job

https://dfarq.homeip.net/how-much-you-can-make-in-an-entry-level-cyber-security-job/
1•ibobev•12m ago•0 comments

What's Riding on Anthropic Going Public? Nearly Everything

https://www.nytimes.com/2026/10/26/technology/anthropic-going-public-stakes.html
3•xnx•13m ago•0 comments

BrowserCode: A browser-based coding playground, powered by WebAssembly

https://labs.leaningtech.com/blog/announcing-browsercode
1•yuri91•14m ago•0 comments

Volvo Car Sinks to Record Low as CEO Says China Market Gone

https://www.bloomberg.com/news/articles/2026-10-23/volvo-car-deepen-job-cuts-china-sales-slump
2•toomuchtodo•15m ago•0 comments

Learning Is Now Optional

https://www.ericekholm.com/posts/learning-is-now-optional/
2•ekholm_e•16m ago•0 comments

A status-line monkey that gets more anxious the longer you code

https://pypi.org/project/jitters-cli/
1•vibeoverflow•16m ago•0 comments

How I teach with an iPad

https://theopenpresenter.com/blog/how-i-teach-with-an-ipad
2•michaelsalim•16m ago•0 comments

AmiJa, a cycle-exact Amiga emulator written in Java

https://www.reddit.com/r/amiga/comments/1xftc5s/amija_amiga_emulator_in_java/
3•doener•17m ago•0 comments

Find Creators to Play Your Game

https://marketyour.games/
1•prophittcorey•17m ago•1 comments

Show HN: Small agents that do one job, in Go

https://tomte.run/
1•berkaycubuk•19m ago•0 comments

Ask HN: What is your experience with keeping data secure

1•akimkern•19m ago•0 comments

AI Beneficiaries: Investing in Second-Order Effects – Update: 100x AI Cultures [pdf]

https://www.morganstanley.com/content/dam/im/assets/publication/thought-leadership/article/articl...
1•bluepeter•19m ago•0 comments