#wrapCreateBrowserRouter return type

2 messages · Page 1 of 1 (latest)

stoic tendon
#

Hello! When I wrapped createBrowserRouter with wrapCreateBrowserRouter I can not use some features. Only path, element, caseSensitive, children, errorElement, index. It has a type CreateRouterFunction<RouterState, Router>. If I add a type manually then it shows all available methods (export const sentryCreateBrowserRouter: typeof createBrowserRouter = Sentry.wrapCreateBrowserRouter(createBrowserRouter)). Is it acceptable to use the other methods in createBrowserRouter together with wrapCreateBrowserRouter?

molten elbow
#

It should be safe yes!