npm.io
0.1.8 • Published 2 years ago

@types/match-media-mock

Licence
MIT
Version
0.1.8
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: none

Credits

These definitions were written by Alexey Svetliakov.