We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c152ddb commit 6f10781Copy full SHA for 6f10781
src/use-web-animations.d.ts
@@ -49,7 +49,7 @@ declare module "@wellyshen/use-web-animations" {
49
animate: Animate;
50
}
51
52
- const useWebAnimations: <T extends HTMLElement>(
+ const useWebAnimations: <T extends HTMLElement | null = HTMLElement>(
53
options?: Options<T>
54
) => Return<T>;
55
src/useWebAnimations.ts
@@ -41,7 +41,7 @@ interface Return<T> {
41
42
43
44
-const useWebAnimations = <T extends HTMLElement>({
+const useWebAnimations = <T extends HTMLElement | null>({
45
ref: refOpt,
46
id,
47
playbackRate,
0 commit comments