// Type definitions for jquery-mouse-exit 1.0 // Project: https://github.com/makeup-jquery/jquery-mouse-exit // Definitions by: Anderson Friaça // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 /// export type Options = Partial<{ delay: number; }>; export type FocusElements = Partial<{ lostFocus: HTMLElement; gainedFocus: HTMLElement; }>; declare global { interface JQuery { mouseExit(options?: Options): JQuery; on(event: 'mouseExit', handler: ((event: JQuery.TriggeredEvent, data: FocusElements) => void)): JQuery; } }