( path?: TFilePath, )
| 36 | import type { UseRouteContextRoute } from './useRouteContext' |
| 37 | |
| 38 | export function createFileRoute< |
| 39 | TFilePath extends keyof FileRoutesByPath, |
| 40 | TParentRoute extends AnyRoute = FileRoutesByPath[TFilePath]['parentRoute'], |
| 41 | TId extends RouteConstraints['TId'] = FileRoutesByPath[TFilePath]['id'], |
| 42 | TPath extends RouteConstraints['TPath'] = FileRoutesByPath[TFilePath]['path'], |
| 43 | TFullPath extends RouteConstraints['TFullPath'] = |
| 44 | FileRoutesByPath[TFilePath]['fullPath'], |
| 45 | >( |
| 46 | path?: TFilePath, |
| 47 | ): FileRoute<TFilePath, TParentRoute, TId, TPath, TFullPath>['createRoute'] { |
| 48 | return new FileRoute<TFilePath, TParentRoute, TId, TPath, TFullPath>(path, { |
| 49 | silent: true, |
| 50 | }).createRoute |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | @deprecated It's no longer recommended to use the `FileRoute` class directly. |
no outgoing calls
no test coverage detected