# @types/matchmediaquery

> TypeScript definitions for matchmediaquery

Latest version **0.3.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/matchmediaquery
pnpm add @types/matchmediaquery
yarn add @types/matchmediaquery
bun add @types/matchmediaquery
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.3.3 |
| Published | 2023-11-07 |
| First published | 2020-11-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/matchmediaquery
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/matchmediaquery
- npm.io page: https://npm.io/package/@types/matchmediaquery

## Recent versions

- 0.3.3 (latest) — 2023-11-07
- 0.3.0 (ts3.2) — 2020-11-16
- 0.3.2 — 2023-10-18
- 0.3.1 — 2023-09-27

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/matchmediaquery/index.d.ts)
````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](https://github.com/eezstreet).

---
_Source: https://npm.io/package/@types/matchmediaquery · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
