(id: TFilePath)
| 256 | } |
| 257 | } |
| 258 | export function createLazyFileRoute< |
| 259 | TFilePath extends keyof FileRoutesByPath, |
| 260 | TRoute extends FileRoutesByPath[TFilePath]['preLoaderRoute'], |
| 261 | >(id: TFilePath): (opts: LazyRouteOptions) => LazyRoute<TRoute> { |
| 262 | if (typeof id === 'object') { |
| 263 | return new LazyRoute<TRoute>(id) as any |
| 264 | } |
| 265 | |
| 266 | return (opts: LazyRouteOptions) => new LazyRoute<TRoute>({ id, ...opts }) |
| 267 | } |
no outgoing calls
no test coverage detected