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.
2 parents 91ca11c + 090c2bb commit 3fee364Copy full SHA for 3fee364
src/WindowScrollSensor/index.ts
@@ -2,14 +2,14 @@ import * as React from 'react';
2
import {SyncSensor} from '../SyncSensor';
3
import {isClient, h} from '../util';
4
import faccToHoc from '../util/faccToHoc';
5
+import {IUniversalInterfaceProps} from '../typing';
6
7
export interface IWindowScrollSensorValue {
8
x: number;
9
y: number;
10
}
11
-export interface IWindowScrollSensorProps {
12
- children?: (state: IWindowScrollSensorValue) => React.ReactElement<any>;
+export interface IWindowScrollSensorProps extends IUniversalInterfaceProps<IWindowScrollSensorValue> {
13
onChange?: (state: IWindowScrollSensorValue) => void;
14
15
0 commit comments