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