# @types/match-media-mock

> TypeScript definitions for match-media-mock

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

## Install

```sh
npm install @types/match-media-mock
pnpm add @types/match-media-mock
yarn add @types/match-media-mock
bun add @types/match-media-mock
```

## 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.1.8 |
| Published | 2023-11-07 |
| First published | 2016-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

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

## Recent versions

- 0.1.8 (latest) — 2023-11-07
- 0.1.6 (ts3.6) — 2021-07-08
- 0.1.5 (ts2.0) — 2016-10-05
- 0.1.7 — 2023-10-18
- 0.1.4 — 2016-09-19
- 0.1.3 — 2016-08-25
- 0.1.2 — 2016-08-19
- 0.1.1 — 2016-08-02

## README

# Installation
> `npm install --save @types/match-media-mock`

# Summary
This package contains type definitions for match-media-mock (https://github.com/azazdeaz/match-media-mock).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/match-media-mock.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/match-media-mock/index.d.ts)
````ts
declare module "match-media-mock" {
    /**
     * Mock configuration options
     */
    interface ConfigOptions {
        /**
         * Screen type
         */
        type?: string | undefined;
        /**
         * Screen height
         */
        height?: number | undefined;
        /**
         * Screen width
         */
        width?: number | undefined;
    }
    interface MatchMediaMock {
        /**
         * Set configuration
         */
        setConfig(config: ConfigOptions): void;
        /**
         * Execute query based on provided configuration
         */
        (query: string): MediaQueryList;
    }
    export function create(): MatchMediaMock;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Alexey Svetliakov](https://github.com/asvetliakov).

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