Skip to content

Commit 3fee364

Browse files
authored
Merge pull request streamich#24 from streamich/fix-scroll-type
feat: 🎸 improve props typings of <WindowScrollSensor>
2 parents 91ca11c + 090c2bb commit 3fee364

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WindowScrollSensor/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import * as React from 'react';
22
import {SyncSensor} from '../SyncSensor';
33
import {isClient, h} from '../util';
44
import faccToHoc from '../util/faccToHoc';
5+
import {IUniversalInterfaceProps} from '../typing';
56

67
export interface IWindowScrollSensorValue {
78
x: number;
89
y: number;
910
}
1011

11-
export interface IWindowScrollSensorProps {
12-
children?: (state: IWindowScrollSensorValue) => React.ReactElement<any>;
12+
export interface IWindowScrollSensorProps extends IUniversalInterfaceProps<IWindowScrollSensorValue> {
1313
onChange?: (state: IWindowScrollSensorValue) => void;
1414
}
1515

0 commit comments

Comments
 (0)