@types/jquery-focus-exit
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jquery-focus-exit

Weekly Downloads

9

Version

1.0.5

License

MIT

Unpacked Size

3.73 kB

Total Files

5

Last publish

Collaborators

  • types