We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f55567d commit 0705258Copy full SHA for 0705258
index.d.ts
@@ -10,7 +10,7 @@ declare module 'react-intersection-observer' {
10
* the target.
11
* Defaults to the browser viewport if not specified or if `null`.
12
*/
13
- root?: HTMLElement;
+ root?: HTMLElement | null;
14
15
/**
16
* Unique identifier for the root element - This is used to identify the
@@ -38,7 +38,7 @@ declare module 'react-intersection-observer' {
38
* multiple trigger points.
39
* @default `0`
40
41
- threshold?: number;
+ threshold?: number | number[];
42
43
44
* Only trigger this method once
0 commit comments