Skip to content

Commit

Permalink
Make TS types looser but more practical
Browse files Browse the repository at this point in the history
Fixes #186
Closes #191
  • Loading branch information
sindresorhus committed Nov 3, 2021
1 parent d6a178d commit 56e1940
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/screenfull.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ declare namespace screenfull {
/**
Simple wrapper for cross-browser usage of the JavaScript [Fullscreen API](https://developer.mozilla.org/en/DOM/Using_full-screen_mode), which lets you bring the page or any element into fullscreen. Smoothens out the browser implementation differences, so you don't have to.
*/
declare const screenfull: screenfull.Screenfull | {isEnabled: false};
declare const screenfull: screenfull.Screenfull;

export = screenfull;
export as namespace screenfull;
2 changes: 1 addition & 1 deletion src/screenfull.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ declare namespace screenfull {
/**
Simple wrapper for cross-browser usage of the JavaScript [Fullscreen API](https://developer.mozilla.org/en/DOM/Using_full-screen_mode), which lets you bring the page or any element into fullscreen. Smoothens out the browser implementation differences, so you don't have to.
*/
declare const screenfull: screenfull.Screenfull | {isEnabled: false};
declare const screenfull: screenfull.Screenfull;

export = screenfull;
export as namespace screenfull;

0 comments on commit 56e1940

Please sign in to comment.