@tanstack/react-router 1.58.17 → 1.58.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-router",
3
- "version": "1.58.17",
3
+ "version": "1.58.18",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
package/src/router.ts CHANGED
@@ -581,12 +581,14 @@ export function createRouter<
581
581
  TDehydrated extends Record<string, any> = Record<string, any>,
582
582
  TSerializedError extends Record<string, any> = Record<string, any>,
583
583
  >(
584
- options: RouterConstructorOptions<
585
- TRouteTree,
586
- TTrailingSlashOption,
587
- TDehydrated,
588
- TSerializedError
589
- >,
584
+ options: undefined extends number
585
+ ? 'strictNullChecks must be enabled in tsconfig.json'
586
+ : RouterConstructorOptions<
587
+ TRouteTree,
588
+ TTrailingSlashOption,
589
+ TDehydrated,
590
+ TSerializedError
591
+ >,
590
592
  ) {
591
593
  return new Router<
592
594
  TRouteTree,