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/

Show HN: AI accounting harness for Indian finance teams

https://totumai.in
1•Yogender78•2m ago•0 comments

ExposurAI – External attack surface and Shadow AI discovery engine

https://exposurai.com
1•ozkerd•3m ago•0 comments

Rising Fuel Prices Set Off Anger and Protests Around the World

https://www.nytimes.com/2026/09/15/world/asia/syria-fuel-price-protests-world.html
1•vrganj•3m ago•0 comments

Einstein's Letter to President Roosevelt – 1939

https://www.atomicarchive.com/resources/documents/beginnings/einstein.html
1•chistev•4m ago•0 comments

Cost of AI Slop in Software Development Report

https://www.qawolf.com/blog/cost-of-ai-slop-in-software-development-report
1•TheAnkurTyagi•4m ago•0 comments

Coding Memory Helps Agents Reuse Engineering Experience

https://twitter.com/AgentMemoryL/status/2096799172112556146
1•IreneAI•6m ago•0 comments

Political Bias in AI Is No Longer a Matter of Opinion. Now It Can Be Measured

https://latticeflow.ai/lp/political-bias-framework
1•duguyue100•9m ago•1 comments

The Great Unwind

https://revyl.com/blog/the-great-unwind/
1•mbokinala•13m ago•0 comments

Turing Lab - Browser Turing Machine simulator (With fast compiled engine)

https://turingsimulator.pages.dev/
1•GopalOr•16m ago•0 comments

Google released Artemis for AI-driven Android automation

https://github.com/google/artemis
1•fourfire•21m ago•0 comments

Student suspended for bringing coffee to class in act of 'civil disobedience'

https://www.fox5ny.com/news/student-suspended-bringing-coffee-class-act-civil-disobedience
1•madihaa•23m ago•0 comments

Show HN: Salmon – tray and desktop alerts for systemd services and custom checks

https://github.com/dimonomid/salmon
1•dimonomid•23m ago•0 comments

Demystifying the PCIe and CPU address space translation in Linux

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Demystifying-the-PCIe-and-CPU-address...
1•ankitg12•27m ago•0 comments

A new privacy savy openrouter

https://openrouter.ai/docs/guides/features/in-region-routing
1•gvieri•28m ago•1 comments

Categorize Everything All at Once

https://iev.ee/blog/categorize-everything-all-at-once/
2•dmit•29m ago•0 comments

Alan Kay's Answer To – Is AGI a Software Problem or a Hardware Problem?

https://www.quora.com/Is-AGI-a-matter-of-new-paradigm-shifts-in-softwares-or-is-current-hardware-...
2•atomicnature•31m ago•0 comments

Billvy|Accounting software for business owners

https://getbillvy.com/
1•sabahatghauri•32m ago•0 comments

Show HN: Musslop – turn any track into adaptive game-style music loops

https://github.com/Siziff/musslop
1•s131ph•32m ago•0 comments

I Put Nam A2-Lite Inside an iRig HD X

https://playtaurus.com/blog/i-put-nam-a2-lite-inside-an-irig-hd-x
2•arbayi•33m ago•0 comments

Show HN: On-device detector for fake lossless audio files (iOS)

https://apps.apple.com/us/app/lacquer-hi-res-flac-verifier/id6784889034
1•monsterx•35m ago•0 comments

Fractal basins trap latent reasoning

https://arxiv.org/abs/2609.04963
1•wil3•40m ago•0 comments

Omarhy's work on Mac support, independent of Asahi

https://omarchy.org/news/2026/09/introducing-omarchy-m/
3•cromka•42m ago•1 comments

Elm-CRDT – Pure-Elm Conflict-Free Replicated Data Types

https://github.com/gampleman/elm-crdt/
3•TheWiggles•42m ago•0 comments

Lepton: Steam's tool for running Android games on Linux

https://gitlab.steamos.cloud/frame-public/lepton
1•NN708•43m ago•0 comments

Andrew Feldman on Building Cerebras and the Future of Chips [video]

https://www.youtube.com/watch?v=HFOhG1jH2tk
2•tosh•43m ago•0 comments

Anthropic's proposed AI watchdog METR has deep ties to Effective Altruism

https://nypost.com/2026/09/15/business/anthropic-ceo-dario-amodeis-handpicked-ai-watchdog-has-dee...
3•ilumanty•47m ago•1 comments

Find every missing music royalty in under 5 minutes (and fix the issues)

https://www.usemogul.com/royalty-finder
1•JeffPon•49m ago•0 comments

EU Floats Canada Becoming the Bloc's First 'Associate Member'

https://www.bloomberg.com/news/articles/2026-09-16/eu-proposes-canada-become-the-bloc-s-first-ass...
43•helsinkiandrew•50m ago•60 comments

More people are seeking emergency care for gambling and it's mostly men and boys

https://www.cbc.ca/news/health/gambling-addiction-emergency-visits-9.7344691
6•rdmuser•51m ago•0 comments

Mistral X Mozilla: Private, Multilingual AI Browsing

https://mistral.ai/news/mistral-x-mozilla/
5•vertigoruntime•52m ago•0 comments