mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* add typings for focus-within * fix test filenames * fix typings and tests according to review comments
17 lines
511 B
TypeScript
17 lines
511 B
TypeScript
// Type definitions for focus-within 1.0
|
|
// Project: https://github.com/jonathantneal/focus-within#readme
|
|
// Definitions by: Damien Erambert <https://github.com/eramdam>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare namespace focusWithin {
|
|
interface FocusWithinOpts {
|
|
attr?: boolean;
|
|
className?: string;
|
|
}
|
|
}
|
|
|
|
declare function focusWithin(document: HTMLDocument, opts?: focusWithin.FocusWithinOpts): void;
|
|
|
|
export as namespace focusWithin;
|
|
export = focusWithin;
|