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;
For example if you want to pass something on logout
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;