1.0.5 • Published 6 months ago

@types/jquery-focus-exit v1.0.5

Weekly downloads
4
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for JQuery Focus Exit 1.0
// Project: https://github.com/makeup-jquery/jquery-focus-exit
// Definitions by: Anderson Friaça <https://github.com/AndersonFriaca>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

/// <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: Thu, 08 Jul 2021 14:23:40 GMT
  • Dependencies: @types/jquery
  • Global values: none

Credits

These definitions were written by Anderson Friaça.

1.0.5

6 months ago

1.0.4

7 months ago

1.0.3

8 months ago

1.0.2

3 years ago

1.0.1

5 years ago

1.0.0

6 years ago