Skip to content

Commit 263760d

Browse files
committed
Fix: ensure Success/Failed/Loading types match export
1 parent e2082ec commit 263760d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import useScriptLoader from "./hooks/useScriptLoader";
33
import useSafeState from "./hooks/useSafeState";
44

55
export interface ScriptLoaderFunction extends React.FC<ScriptLoaderProps> {
6-
Success: React.FC;
7-
Failed: React.FC;
8-
Loading: React.FC;
6+
Success: typeof Success;
7+
Failed: typeof Failed;
8+
Loading: typeof Loading;
99
}
1010

1111
type ScriptLoaderStatus = "loading" | "succeeded" | "failed";

0 commit comments

Comments
 (0)