Export Shape conform code review

https://github.com/DefinitelyTyped/DefinitelyTyped/pull/28493#commitcomment-30333784
This commit is contained in:
jrasmusbm
2018-08-30 09:11:51 +02:00
parent 7a544a8216
commit dda5b233ce
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
import * as React from "react";
interface Shape {
export interface Shape {
top?: number;
left?: number;
bottom?: number;
@@ -1,9 +1,9 @@
import * as React from "react";
import ReactVisibilitySensor from "react-visibility-sensor";
import ReactVisibilitySensor, { Shape } from "react-visibility-sensor";
const num = 1;
const bool = true;
const shape = { top: num, left: num, bottom: num, right: num };
const shape: Shape = { top: num, left: num, bottom: num, right: num };
const component = (
<ReactVisibilitySensor