UNPKG

@types/intrinsic-scale

Version:
39 lines (32 loc) 1.03 kB
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/intrinsic-scale/index.d.ts) ````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 03:09:37 GMT * Dependencies: none # Credits These definitions were written by [shalomdotnet](https://github.com/shalomdotnet).