Skip to content

WithRouterProps types not available #7311

@gurkerl83

Description

@gurkerl83

After upgrading from Next 8.1.0 to 8.1.1 Canary the typescript type definition for WithRouterProps is not there anymore. In the previous version the following statement worked.

import { withRouter, WithRouterProps } from 'next/router';

During the 8.1.1 Canary development iteration withRouter was changed a bit. What is the approach to get those types back again.

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