0.1.8 • Published 6 months ago
@types/match-media-mock v0.1.8
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.