Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Missing Typescript definition for named route params #702

@abraxxa

Description

@abraxxa

For example if you want to pass something on logout

  void auth.logout({
    makeRequest: true,
    redirect: { name: 'auth-login', params: { foo: user.value.foo } }
  })

This Typescript definition in index.d.ts:
type Redirect = {path: string} | {name: string} | string;

should also allow passing params to named routes. Something like this should work:
type Redirect = {path: string} | {name: string, params?: { [key: string]: any } } | string;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions