Skip to content

Commit b11fc83

Browse files
fix: correct import statement for RefAttributes in Unity component
1 parent b0d2265 commit b11fc83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

module/source/components/unity.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
JSX,
88
useImperativeHandle,
99
useCallback,
10+
RefAttributes,
1011
} from "react";
1112
import { UnityInstance } from "../types/unity-instance";
1213
import { UnityProps } from "../types/unity-props";
@@ -15,7 +16,7 @@ import { useUnityLoader } from "../hooks/use-unity-loader";
1516
import { UnityArguments } from "../types/unity-arguments";
1617

1718
const Unity: ForwardRefExoticComponent<
18-
UnityProps & React.RefAttributes<HTMLCanvasElement>
19+
UnityProps & RefAttributes<HTMLCanvasElement>
1920
> = forwardRef<HTMLCanvasElement, UnityProps>(
2021
/**
2122
* @param unityProps The Unity props provided the the Unity component.

0 commit comments

Comments
 (0)