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

1.0.4 • Public • Published

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

/// <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: 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.appear

Weekly Downloads

83

Version

1.0.4

License

MIT

Unpacked Size

3.83 kB

Total Files

5

Last publish

Collaborators

  • types