fix lint errors

This commit is contained in:
Shalom Peles
2018-08-07 19:15:42 +03:00
parent 496621c80d
commit a247b4cbca
2 changed files with 6 additions and 7 deletions
+4 -5
View File
@@ -3,13 +3,12 @@
// Definitions by: My Self <https://github.com/me>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function contain(parentWidth: number, parentHeight: number, childWidth: number, childHeight: number): IntrinsicScale;
export function cover(parentWidth: number, parentHeight: number, childWidth: number, childHeight: number): IntrinsicScale;
export interface IntrinsicScale {
width: number,
height: number,
x: number,
y: number
width: number;
height: number;
x: number;
y: number;
}
@@ -1,4 +1,4 @@
import { cover, contain } from ".";
import { cover, contain } from "intrinsic-scale";
const intrinsicScale = cover(100, 100, 50, 50);
const { x, y, width, height } = contain(1,2,3,4);
const { x, y, width, height } = contain(1, 2, 3, 4);