@tanstack/router-core 0.0.1-beta.150 → 0.0.1-beta.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/fileRoute.js.map +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +114 -114
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/src/fileRoute.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileRoute.js","sources":["../../src/fileRoute.ts"],"sourcesContent":["import { Last, ParsePathParams, Split } from './link'\nimport {\n AnyRoute,\n ResolveFullPath,\n ResolveId,\n AnySearchSchema,\n ResolveFullSearchSchema,\n MergeParamsFromParent,\n RouteContext,\n AnyContext,\n RouteOptions,\n InferFullSearchSchema,\n UpdatableRouteOptions,\n Route,\n} from './route'\nimport { DefaultRoutesInfo } from './routeInfo'\n\nexport interface FileRoutesByPath {\n // '/': {\n // parentRoute: typeof rootRoute\n // }\n}\n\
|
|
1
|
+
{"version":3,"file":"fileRoute.js","sources":["../../src/fileRoute.ts"],"sourcesContent":["import { Last, ParsePathParams, Split } from './link'\nimport {\n AnyRoute,\n ResolveFullPath,\n ResolveId,\n AnySearchSchema,\n ResolveFullSearchSchema,\n MergeParamsFromParent,\n RouteContext,\n AnyContext,\n RouteOptions,\n InferFullSearchSchema,\n UpdatableRouteOptions,\n Route,\n} from './route'\nimport { DefaultRoutesInfo } from './routeInfo'\n\nexport interface FileRoutesByPath {\n // '/': {\n // parentRoute: typeof rootRoute\n // }\n}\n\nexport class FileRoute<\n TFilePath extends keyof FileRoutesByPath,\n TParentRoute extends AnyRoute = FileRoutesByPath[TFilePath]['parentRoute'],\n TPath extends string = Last<Split<TFilePath>>,\n TCustomId extends string = TPath extends `_${infer T}` ? T : string,\n> {\n constructor(public path: TFilePath) {}\n\n createRoute = <\n TFullPath extends ResolveFullPath<TParentRoute, TPath> = ResolveFullPath<\n TParentRoute,\n TPath\n >,\n TId extends ResolveId<TParentRoute, TCustomId, TPath> = ResolveId<\n TParentRoute,\n TCustomId,\n TPath\n >,\n TLoader = unknown,\n TSearchSchema extends AnySearchSchema = {},\n TFullSearchSchema extends AnySearchSchema = ResolveFullSearchSchema<\n TParentRoute,\n TSearchSchema\n >,\n TParams extends Record<ParsePathParams<TPath>, any> = Record<\n ParsePathParams<TPath>,\n string\n >,\n TAllParams extends MergeParamsFromParent<\n TParentRoute['__types']['allParams'],\n TParams\n > = MergeParamsFromParent<TParentRoute['__types']['allParams'], TParams>,\n TParentContext extends TParentRoute['__types']['routeContext'] = TParentRoute['__types']['routeContext'],\n TAllParentContext extends TParentRoute['__types']['context'] = TParentRoute['__types']['context'],\n TRouteContext extends RouteContext = RouteContext,\n TContext extends MergeParamsFromParent<\n TParentRoute['__types']['context'],\n TRouteContext\n > = MergeParamsFromParent<\n TParentRoute['__types']['context'],\n TRouteContext\n >,\n TRouterContext extends AnyContext = AnyContext,\n TChildren extends unknown = unknown,\n TRoutesInfo extends DefaultRoutesInfo = DefaultRoutesInfo,\n >(\n options: Omit<\n RouteOptions<\n TParentRoute,\n TCustomId,\n TPath,\n TLoader,\n InferFullSearchSchema<TParentRoute>,\n TSearchSchema,\n TFullSearchSchema,\n TParentRoute['__types']['allParams'],\n TParams,\n TAllParams,\n TParentContext,\n TAllParentContext,\n TRouteContext,\n TContext\n >,\n 'getParentRoute' | 'path' | 'id'\n > &\n UpdatableRouteOptions<\n TLoader,\n TSearchSchema,\n TFullSearchSchema,\n TAllParams,\n TRouteContext,\n TContext\n >,\n ): Route<\n TParentRoute,\n TPath,\n TFullPath,\n TCustomId,\n TId,\n TLoader,\n TSearchSchema,\n TFullSearchSchema,\n TParams,\n TAllParams,\n TParentContext,\n TAllParentContext,\n TRouteContext,\n TContext,\n TRouterContext,\n TChildren,\n TRoutesInfo\n > => {\n const route = new Route(options as any)\n ;(route as any).isRoot = false\n return route as any\n }\n}\n"],"names":["FileRoute","constructor","path","createRoute","options","route","Route","isRoot"],"mappings":";;;;;;;;;;;;;;;;AAuBO,MAAMA,SAAS,CAKpB;EACAC,WAAWA,CAAQC,IAAe,EAAE;IAAA,IAAjBA,CAAAA,IAAe,GAAfA,IAAe,CAAA;AAAG,GAAA;EAErCC,WAAW,GAsCTC,OA0BG,IAmBA;AACH,IAAA,MAAMC,OAAK,GAAG,IAAIC,WAAK,CAACF,OAAc,CAAC,CAAA;IACrCC,OAAK,CAASE,MAAM,GAAG,KAAK,CAAA;AAC9B,IAAA,OAAOF,OAAK,CAAA;GACb,CAAA;AACH;;;;"}
|