UNPKG

1.38 kBTypeScriptView Raw
1export declare const nextTick: (cb: () => void) => Promise<void>;
2export declare const futureTick: typeof setTimeout;
3/**
4 Retrieves an array of destroyables from the specified property on the object
5 provided, iterates that array invoking each function, then deleting the
6 property (clearing the array).
7
8 @private
9 @param {Object} object an object to search for the destroyable array within
10 @param {string} property the property on the object that contains the destroyable array
11*/
12export declare function runDestroyablesFor(object: any, property: string): void;
13/**
14 Returns whether the passed in string consists only of numeric characters.
15
16 @private
17 @param {string} n input string
18 @returns {boolean} whether the input string consists only of numeric characters
19 */
20export declare function isNumeric(n: string): boolean;
21/**
22 Checks if an element is considered visible by the focus area spec.
23
24 @private
25 @param {Element} element the element to check
26 @returns {boolean} `true` when the element is visible, `false` otherwise
27*/
28export declare function isVisible(element: Element): boolean;
29/**
30 Checks if an element is disabled.
31
32 @private
33 @param {Element} element the element to check
34 @returns {boolean} `true` when the element is disabled, `false` otherwise
35*/
36export declare function isDisabled(element: HTMLElement): boolean;
37//# sourceMappingURL=-utils.d.ts.map
\No newline at end of file