Skip to content

Commit

Permalink
fix: add generic typing to createHTMLMediaHook. no typecheck problem …
Browse files Browse the repository at this point in the history
…with ref anymore.
  • Loading branch information
arminyahya committed Apr 6, 2021
1 parent 93625b1 commit ac4dd78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/useAudio.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import createHTMLMediaHook from './factory/createHTMLMediaHook';

const useAudio = createHTMLMediaHook('audio');

const useAudio = createHTMLMediaHook<HTMLAudioElement>('audio');
export default useAudio;
2 changes: 1 addition & 1 deletion src/useVideo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import createHTMLMediaHook from './factory/createHTMLMediaHook';

const useVideo = createHTMLMediaHook('video');
const useVideo = createHTMLMediaHook<HTMLVideoElement>('video');

export default useVideo;

0 comments on commit ac4dd78

Please sign in to comment.