Skip to content

<Link to='PATH'> is not type safe (i.e any)  #416

@scarf005

Description

@scarf005

Describe the bug

in <Link to='/'>, type of to is any.

Your Example Website or App

https://stackblitz.com/edit/vitejs-vite-e6p9jc?file=src/App.tsx

Steps to Reproduce the Bug or Issue

  1. create a new react-ts instance on https://vitejs.dev/guide/#trying-vite-online
  2. install npm install @tanstack/react-router@beta --save
  3. copy and paste example at https://tanstack.com/router/v1/docs/quick-start to App.tsx
  4. when hovering over <Link to='/'>, type of to is any.

Expected behavior

parameter to is type safe.

Screenshots or Videos

image

Platform

  • OS: Linux
  • Browser: Firefox
  • Version: 108.0b9

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions