mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
fix lint errors
This commit is contained in:
Vendored
+4
-5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user