Skip to content

[v6] types for react-router and react-router-dom #7494

Closed
@sumanthratna

Description

@sumanthratna

Version

6.0.0-beta.0

Test Case

n/a

Steps to reproduce

  1. create a typescript project with create-react-app
  2. try to install @types/[email protected] (fails because types haven't been updated)

Expected Behavior

  • yarn add @types/[email protected] works without errors because there's a version for v6 on the npm registry
  • I can import and use the new props and elements from v6, such as Routes

Actual Behavior

  • the installation of types fails
  • because I don't have the v6 types, I can't implement the prop rename from component to as (fortunately element is available)
  • because I don't have the v6 types, I can't import Routes because typescript thinks Switch still exists

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