Skip to content

Commit bab7d86

Browse files
committed
fix: Allow for interfaces as props
1 parent 71e07f0 commit bab7d86

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ryfylke-react/rtk-query-loader",
3-
"version": "0.3.15",
3+
"version": "0.3.2",
44
"description": "Lets you create loaders that contain multiple RTK queries.",
55
"main": "./dist/cjs/index.js",
66
"module": "./dist/esm/index.js",

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export type InferLoaderData<T> = T extends Loader<
7171
? X
7272
: never;
7373

74-
export type Component<P extends Record<string, unknown>> = (
74+
export type Component<P extends Record<string, any>> = (
7575
props: P
7676
) => ReactElement;
7777

src/withLoader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { RTKLoader } from "./RTKLoader";
33
import * as Types from "./types";
44

55
export const withLoader = <
6-
P extends Record<string, unknown>,
6+
P extends Record<string, any>,
77
R extends unknown,
88
A = never
99
>(

0 commit comments

Comments
 (0)