Skip to content

Functions: createRouterPlugin()

ts
function createRouterPlugin<TRoutes, TRejections>(plugin): RouterPlugin<TRoutes, TRejections>

Type Parameters

Type ParameterDefault type
TRoutes extends Routes[]
TRejections extends Record<string, Component>object

Parameters

ParameterType
pluginPartial<RouterPlugin<TRoutes, TRejections>>

Returns

RouterPlugin<TRoutes, TRejections>