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.