1.0.4 • Published 6 months ago
@types/jquery.appear v1.0.4
Installation
npm install --save @types/jquery.appear
Summary
This package contains type definitions for JQuery Appear (https://github.com/bas2k/jquery.appear).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.appear.
index.d.ts
// Type definitions for JQuery Appear 1.0
// Project: https://github.com/bas2k/jquery.appear
// Definitions by: Anderson Friaça <https://github.com/AndersonFriaca>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="jquery" />
export interface Options<T> {
/**
* Data to pass into callback
*/
data?: T | undefined;
/**
* Callback is called only in first appear
*/
one?: boolean | undefined;
/**
* X accuracy
*/
accX?: number | undefined;
/**
* Y accuracy
*/
accY?: number | undefined;
}
declare global {
interface JQuery {
/**
* Initialize appear plugin
*/
appear<T>(callback: ((element: HTMLElement, data: T) => void), options?: Options<T>): JQuery;
}
}
Additional Details
- Last updated: Thu, 08 Jul 2021 16:22:31 GMT
- Dependencies: @types/jquery
- Global values: none
Credits
These definitions were written by Anderson Friaça.