(id: TFilePath)
| 262 | } |
| 263 | } |
| 264 | export function createLazyFileRoute< |
| 265 | TFilePath extends keyof FileRoutesByPath, |
| 266 | TRoute extends FileRoutesByPath[TFilePath]['preLoaderRoute'], |
| 267 | >(id: TFilePath): (opts: LazyRouteOptions) => LazyRoute<TRoute> { |
| 268 | if (typeof id === 'object') { |
| 269 | return new LazyRoute<TRoute>(id) as any |
| 270 | } |
| 271 | |
| 272 | return (opts: LazyRouteOptions) => new LazyRoute<TRoute>({ id, ...opts }) |
| 273 | } |
no outgoing calls
no test coverage detected