Skip to content

Commit bb70f4a

Browse files
committed
update build to webpack v5 + add typescript definition file along with build changes
1 parent 06ba02b commit bb70f4a

File tree

6 files changed

+917
-1610
lines changed

6 files changed

+917
-1610
lines changed

build/index.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Hook which observes viewport dimensions.
3+
*
4+
* If input not specified, returns the [width, height] when the window changes.
5+
* If input is specified as a number, it returns the [width, height].
6+
*
7+
* If the input is specified as a function, it accepts a callback
8+
* with the viewport width and height passed in the first arg as
9+
* { vpW, vpH }, and will only return a new value and update when
10+
* the hash-value returned changes.
11+
*/
12+
export declare function useViewportSizes(
13+
input:number | (({ vpW: number, vpH: number }) => String)
14+
):[vpW: number, vpH: number];

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)