MCPcopy
hub / github.com/TanStack/router / createRoute

Function createRoute

packages/vue-router/src/route.ts:300–379  ·  view source on GitHub ↗
(
  options: RouteOptions<
    TRegister,
    TParentRoute,
    TId,
    TCustomId,
    TFullPath,
    TPath,
    TSearchValidator,
    TParams,
    TLoaderDeps,
    TLoaderFn,
    AnyContext,
    TRouteContextFn,
    TBeforeLoadFn,
    TSSR,
    THandlers
  >,
)

Source from the content-addressed store, hash-verified

298}
299
300export function createRoute<
301 TRegister = unknown,
302 TParentRoute extends RouteConstraints['TParentRoute'] = AnyRoute,
303 TPath extends RouteConstraints['TPath'] = '/',
304 TFullPath extends RouteConstraints['TFullPath'] = ResolveFullPath<
305 TParentRoute,
306 TPath
307 >,
308 TCustomId extends RouteConstraints['TCustomId'] = string,
309 TId extends RouteConstraints['TId'] = ResolveId<
310 TParentRoute,
311 TCustomId,
312 TPath
313 >,
314 TSearchValidator = undefined,
315 TParams = ResolveParams<TPath>,
316 TRouteContextFn = AnyContext,
317 TBeforeLoadFn = AnyContext,
318 TLoaderDeps extends Record<string, any> = {},
319 TLoaderFn = undefined,
320 TChildren = unknown,
321 TSSR = unknown,
322 THandlers = undefined,
323>(
324 options: RouteOptions<
325 TRegister,
326 TParentRoute,
327 TId,
328 TCustomId,
329 TFullPath,
330 TPath,
331 TSearchValidator,
332 TParams,
333 TLoaderDeps,
334 TLoaderFn,
335 AnyContext,
336 TRouteContextFn,
337 TBeforeLoadFn,
338 TSSR,
339 THandlers
340 >,
341): Route<
342 TRegister,
343 TParentRoute,
344 TPath,
345 TFullPath,
346 TCustomId,
347 TId,
348 TSearchValidator,
349 TParams,
350 AnyContext,
351 TRouteContextFn,
352 TBeforeLoadFn,
353 TLoaderDeps,
354 TLoaderFn,
355 TChildren,
356 unknown,
357 TSSR,

Callers 15

FileRouteClass · 0.90
createTestRouterFunction · 0.90
link.test-d.tsxFile · 0.90
route.test.tsxFile · 0.90
setupFunction · 0.90
not-found.test.tsxFile · 0.90
setupFunction · 0.90

Calls

no outgoing calls

Tested by 15

createTestRouterFunction · 0.72
setupFunction · 0.72
setupFunction · 0.72
runTestFunction · 0.72
setupRouterFunction · 0.72
setupFunction · 0.72
createTestRouterFunction · 0.72
runTestFunction · 0.72
setupRouterFunction · 0.72
createTestRouterFunction · 0.72