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/

Anthropic's Seven Founders

https://www.nytimes.com/2026/10/26/technology/anthropic-founders.html
1•donohoe•5m ago•0 comments

Show HN: TablePro – open-source native database client for macOS

https://github.com/TableProApp/TablePro
1•ngoquocdat•6m ago•0 comments

OLED iPad Mini

https://www.apple.com/shop/buy-ipad/ipad-mini
3•etothet•6m ago•0 comments

Connect your AI agents to your database without them having to write SQL

https://github.com/claix-dev/claix-for-devs
1•gael_dev•6m ago•0 comments

Show HN: Tapo-uploader – Tapo camera to private YouTube, recorded on motion

https://github.com/LuigiElleBalotta/tapo-uploader
1•lbalotta•7m ago•0 comments

Show HN: KanuniLabs-DataGrid and PivotGrid for React and JavaScript

https://kanunilabs.com/demos/sales-analytics
1•hizlikovboy27•7m ago•1 comments

How to install an app on your Commodore 64

https://www.anildash.com/2026/10/08/install-an-app-commodore-64/
1•colinprince•8m ago•0 comments

Pusaka Intelligence – AI equity research on US large caps

https://pusakaintelligence.com/en/
1•David_Gunawan•8m ago•0 comments

How far $100 of fuel takes you in America's best-selling cars

https://www.kadoa.com/energy-prices/insights/car-fuel-costs
1•hubraumhugo•10m ago•0 comments

What Are Chinese AI Companies Saying About the Impacts of Export Controls?

https://www.konstantinpilz.com/posts-publications/chinese-statements-on-compute
1•abdullahalharir•10m ago•0 comments

Ask HN: Is it true the Claude Code is better than Codex for coding?

1•abalgir•10m ago•0 comments

Custom Development Services

https://www.bitechnology.co.uk/
1•itshimbilal•12m ago•0 comments

It's time to come back to Firefox [video]

https://www.youtube.com/watch?v=E2AoYIKwJqM
3•wofo•12m ago•0 comments

Product

https://www.anthropic.com/news/product
1•surprisetalk•13m ago•0 comments

Anthropic IPO: S-1 Filing Offers First Look at Claude Maker's Finances

https://www.bloomberg.com/news/articles/2026-10-26/anthropic-ipo-s-1-filing-offers-first-look-at-...
1•gk1•14m ago•0 comments

Rockchip RK3588s Secure BootROM arbitrary code execution with highest privileges

https://www.cve.org/CVERecord?id=CVE-2024-13942
3•yeko•14m ago•0 comments

Show HN: Generate 3D printable mesh from laser scanned terrain data

https://github.com/code-fabrik/las2stl
1•Lukas_Skywalker•17m ago•0 comments

Chattanooga's Ambitious Plan to Become America's Quantum Capital

https://www.forbes.com/sites/jonathanreichental/2026/10/24/chattanoogas-ambitious-plan-to-become-...
1•willswire•17m ago•0 comments

Panfrost is now using Kraid

https://www.collabora.com/news-and-blog/news-and-events/panfrost-is-now-using-kraid.html
4•losgehts•21m ago•0 comments

Best Database Design Tools for 2027: Windows, macOS and Linux

https://visualeaf.com/blog/best-database-design-tools/
2•business_analys•21m ago•0 comments

Anthropic rushing IPO before AI bubble bursts

https://nypost.com/2026/10/23/business/wall-street-is-urging-anthropic-openai-to-do-their-ipos-in...
8•nothrowaways•23m ago•0 comments

Senior devs are in their Kasparov era

https://www.reddit.com/r/ClaudeAI/comments/1xfs6h7/senior_devs_are_in_their_kasparov_era/
1•redbell•24m ago•0 comments

Show HN: Gostman – Open-source API client with Git-friendly YAML collections

https://gostman.com/
1•kentuckyrc•25m ago•0 comments

Show HN: 25launches – I built a Linktree for my product launches

https://25launches.com
1•bilyas509•25m ago•1 comments

LearnHarness – An Agent Harness for Learning

https://github.com/amosblomqvist/learnharness
2•abhaynayar•27m ago•0 comments

Anthropic Reveals 14-Fold Increase in Growth as It Prepares for Blockbuster IPO

https://www.nytimes.com/2026/10/26/technology/anthropic-ipo-finances.html
2•jbegley•27m ago•0 comments

AI is coming for accounting after coding

2•shoman3003•29m ago•0 comments

Anthropic files for listing on US stock market: valuation of more than $1.5T

https://www.theguardian.com/technology/2026/oct/26/anthropic-files-listing-stock-market
5•bookofjoe•30m ago•0 comments

The MS-DOS Moment of AI

https://rruxandra.github.io/the-msdos-moment.html
2•rruxandra•31m ago•0 comments

Show HN: Sbr, a sing-box compatible client for government resistant VPN infra

https://sbr.blit.cc/benchmarks/
1•antihero•33m ago•0 comments