npm.io
3.0.3 • Published 2 years ago

@types/intrinsic-scale

Licence
MIT
Version
3.0.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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.