Installation
npm install --save @types/intrinsic-scale
Summary
This package contains type definitions for intrinsic-scale (https://github.com/bfred-it/intrinsic-scale#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/intrinsic-scale.
index.d.ts
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;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 0337 GMT
- Dependencies: none
Credits
These definitions were written by shalomdotnet.