// Type definitions for JQuery Appear 1.0 // Project: https://github.com/bas2k/jquery.appear // Definitions by: Anderson Friaça // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 /// export interface Options { /** * Data to pass into callback */ data?: T; /** * Callback is called only in first appear */ one?: boolean; /** * X accuracy */ accX?: number; /** * Y accuracy */ accY?: number; } declare global { interface JQuery { /** * Initialize appear plugin */ appear(callback: ((element: HTMLElement, data: T) => void), options?: Options): JQuery; } }