DefinitelyTyped/types/tabbable/index.d.ts
2018-09-21 02:48:06 -07:00

19 lines
510 B
TypeScript

// Type definitions for tabbable 3.1
// Project: https://github.com/davidtheclark/tabbable
// Definitions by: Michael Swiger <https://github.com/mokkan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function T(el: Element | Document, options?: T.Options): HTMLElement[];
declare namespace T {
interface Options {
includeContainer?: boolean;
}
function isTabbable(el: HTMLElement): boolean;
function isFocusable(el: HTMLElement): boolean;
}
export = T;