mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
Export Shape conform code review
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/28493#commitcomment-30333784
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user