| 61 | Instead, use `createFileRoute('/path/to/file')(options)` to create a file route. |
| 62 | */ |
| 63 | export class FileRoute< |
| 64 | TFilePath extends keyof FileRoutesByPath, |
| 65 | TParentRoute extends AnyRoute = FileRoutesByPath[TFilePath]['parentRoute'], |
| 66 | TId extends RouteConstraints['TId'] = FileRoutesByPath[TFilePath]['id'], |
| 67 | TPath extends RouteConstraints['TPath'] = FileRoutesByPath[TFilePath]['path'], |
| 68 | TFullPath extends RouteConstraints['TFullPath'] = |
| 69 | FileRoutesByPath[TFilePath]['fullPath'], |
| 70 | > { |
| 71 | silent?: boolean |
| 72 | |
| 73 | constructor( |
| 74 | public path?: TFilePath, |
| 75 | _opts?: { silent: boolean }, |
| 76 | ) { |
| 77 | this.silent = _opts?.silent |
| 78 | } |
| 79 | |
| 80 | createRoute = < |
| 81 | TRegister = Register, |
| 82 | TSearchValidator = undefined, |
| 83 | TParams = ResolveParams<TPath>, |
| 84 | TRouteContextFn = AnyContext, |
| 85 | TBeforeLoadFn = AnyContext, |
| 86 | TLoaderDeps extends Record<string, any> = {}, |
| 87 | TLoaderFn = undefined, |
| 88 | TChildren = unknown, |
| 89 | TSSR = unknown, |
| 90 | TMiddlewares = unknown, |
| 91 | THandlers = undefined, |
| 92 | >( |
| 93 | options?: FileBaseRouteOptions< |
| 94 | TRegister, |
| 95 | TParentRoute, |
| 96 | TId, |
| 97 | TPath, |
| 98 | TSearchValidator, |
| 99 | TParams, |
| 100 | TLoaderDeps, |
| 101 | TLoaderFn, |
| 102 | AnyContext, |
| 103 | TRouteContextFn, |
| 104 | TBeforeLoadFn, |
| 105 | AnyContext, |
| 106 | TSSR, |
| 107 | TMiddlewares, |
| 108 | THandlers |
| 109 | > & |
| 110 | UpdatableRouteOptions< |
| 111 | TParentRoute, |
| 112 | TId, |
| 113 | TFullPath, |
| 114 | TParams, |
| 115 | TSearchValidator, |
| 116 | TLoaderFn, |
| 117 | TLoaderDeps, |
| 118 | AnyContext, |
| 119 | TRouteContextFn, |
| 120 | TBeforeLoadFn |
nothing calls this directly
no test coverage detected