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

0.1.8 • Public • Published

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

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/match-media-mock

Weekly Downloads

4,417

Version

0.1.8

License

MIT

Unpacked Size

3.98 kB

Total Files

5

Last publish

Collaborators

  • types