0.1.8 • Published 6 months ago

@types/match-media-mock v0.1.8

Weekly downloads
1,392
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for match-media-mock 0.1.0
// Project: https://github.com/azazdeaz/match-media-mock
// Definitions by: Alexey Svetliakov <https://github.com/asvetliakov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 08 Jul 2021 16:24:04 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Alexey Svetliakov.

0.1.8

6 months ago

0.1.7

7 months ago

0.1.6

3 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago