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

0.1.4 • Public • Published

Installation

npm install --save @types/css-mediaquery

Summary

This package contains type definitions for css-mediaquery (https://github.com/ericf/css-mediaquery).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-mediaquery.

index.d.ts

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

export function match(query: string, values: Partial<MediaValues>): boolean;

export type AST = QueryNode[];
export interface QueryNode {
    inverse: boolean;
    type: string;
    expressions: Expression[];
}
export interface Expression {
    modifier: string;
    feature: string;
    value: string;
}

export function parse(query: string): AST;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Sebastian Silbermann.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/css-mediaquery

Weekly Downloads

156,807

Version

0.1.4

License

MIT

Unpacked Size

3.92 kB

Total Files

5

Last publish

Collaborators

  • types