Skip to content

Commit

Permalink
fix(types): change useFullscreen hook return type (it never returns u…
Browse files Browse the repository at this point in the history
…ndefined) (#1006)
  • Loading branch information
sszczep committed May 20, 2022
1 parent 0311156 commit 6ac36e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useFullscreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function warnDeprecatedOnChangeAndOnErrorUsage() {
*/
function useFullscreen(
options: FullScreenOptions = {}
): FullscreenApi | undefined {
): FullscreenApi {
if (typeof window === "undefined") {
console.warn("useFullscreen: window is undefined.");

Expand Down

0 comments on commit 6ac36e1

Please sign in to comment.