DefinitelyTyped/types/jquery-focusable/index.d.ts
2018-04-14 12:17:15 -07:00

26 lines
636 B
TypeScript

// Type definitions for JQuery Focusable 1.0
// Project: https://github.com/makeup-jquery/jquery-focusable
// Definitions by: Anderson Friaça <https://github.com/AndersonFriaca>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="jquery" />
export type Options = Partial<{
/**
* Find elements with tabindex equal to -1
*/
findNegativeTabindex: boolean;
/**
* Find elements with tabindex greater than 0
*/
findPositiveTabindex: true;
}>;
declare global {
interface JQuery {
focusable(options?: Options): JQuery;
}
}