-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from rob2d/typescript-defs-and-webpack-5
Typescript support and Webpack 5 Builds
- Loading branch information
Showing
6 changed files
with
939 additions
and
1,611 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
declare module 'use-viewport-sizes' { | ||
/** | ||
* Hook which observes viewport dimensions. Returns [width, height] of | ||
* current visible viewport of app. | ||
* | ||
* If no input specified, returns the [width, height] when the window changes. | ||
* | ||
* If input is specified as a number, it interprets this as the number of | ||
* miliseconds to debounce before updates. | ||
* | ||
* If the input is specified as a function, it accepts a callback | ||
* with the viewport width and height passed in the first arg as | ||
* { vpW, vpH }, and will only return a new value and update when | ||
* the hash-value returned changes. | ||
*/ | ||
export default function( | ||
input:number | (({ vpW: number, vpH: number }) => String) | ||
):[vpW: number, vpH: number]; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.