UNPKG

device-navigation

Version:

Navigate HTML elements in two dimensions with non-pointer devices.

22 lines (21 loc) 626 B
/** * A collection of attribute keys to values. This is just used to ensure we're not applying invalid * attribute values. * * @category Internal */ export type AttributesMap = { [attributeName: string]: string | boolean | number | undefined; }; /** * Apply all given attribute key/value pairs to the given element. * * @category Internal */ export declare function applyAttributes(element: Element, attributes: AttributesMap): void; /** * Extract all current attributes applied to the given element. * * @category Internal */ export declare function readAttributes(element: Element): Record<string, string>;