UNPKG

piral-core

Version:

The core library for creating a Piral instance.

19 lines (18 loc) 430 B
import * as React from 'react'; /** * The props for the SetRedirect component. */ export interface SetRedirectProps { /** * The path of the seen route. */ from: string; /** * The path of the target route. */ to: string; } /** * The component capable of setting a global redirect route at mounting. */ export declare function SetRedirect({ from, to }: SetRedirectProps): React.ReactElement;