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

2.4.4 • Public • Published

Installation

npm install --save @types/arrive

Summary

This package contains type definitions for arrive (https://github.com/uzairfarooq/arrive).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/arrive.

index.d.ts

// required for declare global to work
export {};

interface Options {
    fireOnAttributesModification?: boolean | undefined;
    onceOnly?: boolean | undefined;
    existing?: boolean | undefined;
}

type ArriveSignature = (
    element: string,
    handlerOrOptions: ((this: Element, element: Element) => void) | Options,
    handler?: (this: Element, element: Element) => void,
) => void;
type UnbindArriveSignature = (
    elementOrHandler?: string | ((this: Element, element: Element) => void),
    handler?: (this: Element, element: Element) => void,
) => void;
type LeaveSignature = (
    element: string,
    handlerOrOptions: ((this: Element, element: Element) => void) | Options,
    handler?: (this: Element) => void,
) => void;
type UnbindLeaveSignature = (
    elementOrHandler?: string | ((this: Element, element: Element) => void),
    handler?: (this: Element, element: Element) => void,
) => void;

declare global {
    // tslint:disable-next-line no-unnecessary-class
    class Arrive {
        static unbindAllArrive: () => void;
        static unbindAllLeave: () => void;
    }

    interface Document {
        arrive: ArriveSignature;
        unbindArrive: UnbindArriveSignature;
        leave: LeaveSignature;
        unbindLeave: UnbindLeaveSignature;
    }

    interface JQuery {
        arrive: ArriveSignature;
        unbindArrive: UnbindArriveSignature;
        leave: LeaveSignature;
        unbindLeave: UnbindLeaveSignature;
    }

    interface Window {
        arrive: ArriveSignature;
        unbindArrive: UnbindArriveSignature;
        leave: LeaveSignature;
        unbindLeave: UnbindLeaveSignature;
    }

    interface NodeList {
        arrive: ArriveSignature;
        unbindArrive: UnbindArriveSignature;
        leave: LeaveSignature;
        unbindLeave: UnbindLeaveSignature;
    }

    interface Element {
        arrive: ArriveSignature;
        unbindArrive: UnbindArriveSignature;
        leave: LeaveSignature;
        unbindLeave: UnbindLeaveSignature;
    }

    interface HTMLCollectionBase {
        arrive: ArriveSignature;
        unbindArrive: UnbindArriveSignature;
        leave: LeaveSignature;
        unbindLeave: UnbindLeaveSignature;
    }
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

These definitions were written by Vijay Pemmaraju.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/arrive

Weekly Downloads

1,281

Version

2.4.4

License

MIT

Unpacked Size

6.95 kB

Total Files

5

Last publish

Collaborators

  • types