Skip to content

Commit c528083

Browse files
committed
fix typing
1 parent 8f05354 commit c528083

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ declare namespace ReactDeviceDetect {
8080
condition?: boolean;
8181
}
8282

83-
export function deviceDetect (): any;
83+
export function deviceDetect(): any;
8484

85-
export function withOrientationChange (Component: any): any;
85+
export function withOrientationChange<P, S = {}>(Component: React.Component<P, S> | React.FC<P>): React.ComponentClass<P, S>;
8686

8787
export class BrowserView extends React.Component<ViewProps> {
8888
}

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"devDependencies": {
5151
"@babel/preset-env": "^7.5.5",
5252
"@babel/preset-react": "^7.0.0",
53+
"@types/react": "^17.0.0",
5354
"enzyme": "^3.1.0",
5455
"enzyme-adapter-react-16": "^1.0.1",
5556
"jest": "^24.8.0",

0 commit comments

Comments
 (0)