@types/matchmediaquery
TypeScript icon, indicating that this package has built-in type declarations

0.3.3 • Public • Published

Installation

npm install --save @types/matchmediaquery

Summary

This package contains type definitions for matchmediaquery (https://github.com/ncochard/matchmediaquery#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/matchmediaquery.

index.d.ts

type MediaValues = Record<
    | "aspect-ratio"
    | "color-index"
    | "color"
    | "device-aspect-ratio"
    | "device-height"
    | "device-width"
    | "grid"
    | "height"
    | "monochrome"
    | "orientation"
    | "resolution"
    | "scan"
    | "type"
    | "width",
    unknown
>;

declare class Mql {
    constructor(query: string, values?: Partial<MediaValues>, forceStatic?: boolean);

    update(evt: Mql): void;

    dispose(): void;

    matches: boolean;

    media: string;
}

declare function matchMedia(query: string, values?: Partial<MediaValues>, forceStatic?: boolean): Mql;
export = matchMedia;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Nick Whitlock.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/matchmediaquery

Weekly Downloads

1,399

Version

0.3.3

License

MIT

Unpacked Size

3.85 kB

Total Files

5

Last publish

Collaborators

  • types