UNPKG

formatchange

Version:

Utility that monitors named CSS media-query breakpoints and triggers event callbacks when a media-format change occurs.

13 lines (12 loc) 515 B
import { FormatMonitorGroupConfig } from "../formatchange"; export declare type GroupConfig<Group extends string> = Record<string, { group?: Group | Array<Group>; [x: string]: unknown; }>; /** * Esoteric helper that maps a complex `GroupConfig` config object * into a `FormatMonitorGroupConfig` * * @see https://github.com/maranomynet/formatchange/tree/v2#makegroups-helper */ export declare const makeGroups: <Group extends string>(groupConfig: GroupConfig<Group>) => FormatMonitorGroupConfig<Group>;