Installation
npm install --save @types/jquery-focus-exit
Summary
This package contains type definitions for jquery-focus-exit (https://github.com/makeup-jquery/jquery-focus-exit).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-focus-exit.
index.d.ts
/// <reference types="jquery" />
export interface FocusElements {
lostFocus?: HTMLElement | undefined;
gainedFocus: HTMLElement;
}
declare global {
interface JQuery {
focusExit(options?: { debug: boolean }): JQuery;
on(
event: "focusExit",
handler: (event: JQuery.TriggeredEvent<HTMLElement>, data: FocusElements) => void,
): JQuery;
one(event: "focusin", handler: (event: JQuery.TriggeredEvent<HTMLElement>) => void): JQuery;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/jquery
Credits
These definitions were written by Anderson Friaça.