clear-react-router 1.6.0 → 1.6.1

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.
@@ -1 +1,2 @@
1
- export declare const useLoaderState: <T>() => T;
1
+ import { LoaderState } from '../types/global';
2
+ export declare const useLoaderState: <T>() => LoaderState<T>;
@@ -49,8 +49,8 @@ export type RevalidateCacheArgs = {
49
49
  pathname: string;
50
50
  routeItem?: RouteItem;
51
51
  };
52
- export type LoaderState = {
53
- data: unknown;
52
+ export type LoaderState<T = unknown> = {
53
+ data: T;
54
54
  loaderError: Error | null;
55
55
  beforeLoadError: Error | null;
56
56
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clear-react-router",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "A lightweight, type-safe routing library for React applications",
5
5
  "author": "Andrew Bubnov",
6
6
  "scripts": {