TanStack / query

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
https://tanstack.com/query
MIT License
42.76k stars 2.92k forks source link

docs: link to typescript page is dead in Angular Query Options #8022

Closed ledenis closed 2 weeks ago

ledenis commented 2 months ago

Describe the bug

In Query Options page for Angular, the link "with TypeScript" is a 404.

Your minimal, reproducible example

N/A

Steps to reproduce

  1. Go to https://tanstack.com/query/latest/docs/framework/angular/guides/query-options
  2. Click on "with TypeScript" link
  3. Observe a 404 error

Expected behavior

Should navigate to a page that shows the equivalent of this content for Angular: https://github.com/TanStack/query/blob/main/docs/framework/react/typescript.md#typing-query-options

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

N/A

Tanstack Query adapter

angular-query

TanStack Query version

N/A

TypeScript version

No response

Additional context

No response

DogPawHat commented 2 months ago

Quick fix is to remove the broken link by placing a [//]: # 'Description' directive (or whatever the yoke is called) around the text block in react/guides/query-options.md and add replacement text in angular/guides/query-options.md without the link.

The proper fix is to write up angular/typescript.md properly. It should share a lot of content with the React and Vue versions, but I've not touched Angular in a hot minute.

arnoud-dv commented 2 months ago

Yes it needs to be written. It would be different from React and Vue as signals being functions and typescript currently not supporting discriminated unions on properties returning a function brings some typing challenges.

arnoud-dv commented 2 weeks ago

I just added the TypeScript page: https://tanstack.com/query/latest/docs/framework/angular/typescript