UNPKG

443 BTypeScriptView Raw
1/**
2 * Copyright (c) 2017, Philip Walton <philip@philipwalton.com>
3 */
4/**
5 * Gets all attributes of an element as a plain JavaScriot object.
6 * @param {Element} element The element whose attributes to get.
7 * @return {!Object} An object whose keys are the attribute keys and whose
8 * values are the attribute values. If no attributes exist, an empty
9 * object is returned.
10 */
11export declare function getAttributes(element: any): {};