mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Perform changes conform instructions from armanio123
This commit is contained in:
+4
-2
@@ -6,7 +6,9 @@
|
||||
|
||||
import * as React from "react";
|
||||
|
||||
export interface Shape {
|
||||
export as namespace ReactVisibilitySensor;
|
||||
|
||||
interface Shape {
|
||||
top?: number;
|
||||
left?: number;
|
||||
bottom?: number;
|
||||
@@ -35,4 +37,4 @@ interface Props {
|
||||
|
||||
declare const ReactVisibilitySensor: React.StatelessComponent<Props>;
|
||||
|
||||
export default ReactVisibilitySensor;
|
||||
export = ReactVisibilitySensor;
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import * as React from "react";
|
||||
|
||||
import ReactVisibilitySensor, { Shape } from "react-visibility-sensor";
|
||||
import * as ReactVisibilitySensor from "react-visibility-sensor";
|
||||
|
||||
const num = 1;
|
||||
const bool = true;
|
||||
const shape: Shape = { top: num, left: num, bottom: num, right: num };
|
||||
const shape = { top: num, left: num, bottom: num, right: num };
|
||||
|
||||
const component = (
|
||||
<ReactVisibilitySensor
|
||||
|
||||
Reference in New Issue
Block a user