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/

Selfish AI

https://www.garfieldtech.com/blog/selfish-ai
1•mwcampbell•1m ago•0 comments

Evaluating Multilingual, Context-Aware Guardrails: A Humanitarian LLM Use Case

https://blog.mozilla.ai/evaluating-multilingual-context-aware-guardrails-evidence-from-a-humanita...
1•benbreen•2m ago•0 comments

The Ho-6 Masterclass

https://suretyinsights.com/blog/the-ho6-masterclass-everything-you-need-to-know-about-condo-insur...
1•engelo_b•3m ago•0 comments

How do founders demo real product without exposing sensitive data?

1•legitimate_key•4m ago•0 comments

Show HN: Revvly – Income operating system for freelancers (replacing 5 tools)

http://revvly.ca/
1•tlpeterson•6m ago•0 comments

Show HN: EPI – Cryptographically verifiable execution artifacts for AI agents

https://github.com/mohdibrahimaiml/epi-recorder
1•afridi_epilabs•8m ago•0 comments

In one swoop, Trump kills US greenhouse gas regulations

https://www.theverge.com/science/877371/trump-carbon-pollution-endangerment-finding-repeal-climat...
2•aaronbrethorst•9m ago•1 comments

How do you "step through" your own anxiety?

1•schneak•9m ago•0 comments

Learn Fundamentals, Not Frameworks

https://newsletter.techworld-with-milan.com/p/learn-fundamentals-not-frameworks
1•birdculture•9m ago•0 comments

Anthropic's Chief on A.I.: 'We Don't Know If the Models Are Conscious'

https://www.nytimes.com/video/opinion/100000010695648/is-claude-coding-us-into-irrelevance.html
3•jbegley•12m ago•1 comments

CCBench: How do agents perform on codebases that aren't part of training data?

https://ccbench.org/
1•rohitpaulk•12m ago•0 comments

I've built Googles LangExtract like libary on my own runtime

https://github.com/jolovicdev/sourcery
1•jolovicdev•13m ago•1 comments

Agents Shouldn't See API Keys

https://seksbot.com/blog/why-agents-shouldnt-see-api-keys/
1•stcredzero•13m ago•0 comments

Is It over for Metrics?

https://clickhouse.com/blog/is-it-over-for-metrics-in-observability
1•puppion•15m ago•0 comments

UniFi Drive 4.0

https://blog.ui.com/article/introducing-unifi-drive-4-0
1•ianrahman•15m ago•0 comments

The PaaS Graveyard: Why Platforms Keep Dying and Developers Keep Migrating

https://blog.cloud66.com/paas-graveyard-why-platforms-keep-dying
1•ksajadi•16m ago•0 comments

23 months left to escape the permanent underclass

https://escapethepermanentunderclass.com
3•andreyazimov•17m ago•1 comments

There is no AI pricing playbook. Here's what I'd do instead

https://www.solvimon.com/blog/there-is-no-ai-pricing-playbook
1•arnon•18m ago•0 comments

Discord Just Killed Anonymity

https://michael-dev-tech.github.io/Website/matrix.html
2•f0r3st•19m ago•0 comments

Md: It's now considered the LARGEST spill of wastewater in U.S. history

https://twitter.com/nova_campaigns/status/2021910025527046437
1•vinnyglennon•19m ago•1 comments

Least Affordable Cities – US Tech Hub Named as Hardest to Buy a Home

https://www.realtor.com/news/trends/least-affordable-cities-world-homebuying/
1•TMWNN•22m ago•1 comments

NHS deal with AI firm Palantir called into question after officials' concerns

https://www.theguardian.com/society/2026/feb/12/nhs-deal-with-ai-firm-palantir-called-into-questi...
2•chrisjj•23m ago•1 comments

Poisoning scraperbots with iocaine

https://lwn.net/SubscriberLink/1056953/6228bee893e6cd49/
1•chmaynard•24m ago•0 comments

The Timeless Way of Programming (2022)

https://tomasp.net/blog/2022/timeless-way/
1•todsacerdoti•24m ago•0 comments

How to build text-to-app platforms

1•desperado1•24m ago•0 comments

Show HN: We built Cobalt, Open source unit testing for AI Agents

https://github.com/basalt-ai/cobalt
3•fdefitte•25m ago•1 comments

Bondi Spying on Congressional Epstein Searches Should Be a Major Scandal

https://www.techdirt.com/2026/02/12/bondi-spying-on-congressional-epstein-searches-should-be-a-ma...
5•hn_acker•26m ago•1 comments

See It Written

https://seeitwritten.com/
1•foxfired•26m ago•0 comments

PDC 1996 Keynote with Douglas Adams [video]

https://www.youtube.com/watch?v=8UNG3cQoOEc
1•markh1967•27m ago•1 comments

Pwning Supercomputers — A 20 year old vulnerability in Munge

https://blog.lexfo.fr/munge-heap-buffer-overflow.html
1•Lammy•30m ago•0 comments