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

    1.2.1 • Public • Published

    Installation

    npm install --save @types/p-loading

    Summary

    This package contains type definitions for p-loading (http://joseshiru.github.io/p-loading/).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/p-loading.

    index.d.ts

    // Type definitions for p-loading 1.2
    // Project: http://joseshiru.github.io/p-loading/
    // Definitions by: Soner Köksal <https://github.com/renjfk>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.3
    
    /// <reference types="jquery" />
    
    interface PLoadingOptions {
        action?: "show" | "hide" | "destroy" | undefined;
        maskColor?: string | undefined;
        containerHTML?: string | undefined;
        containerAttrs?: object | undefined;
        containerClass?: string | undefined;
        spinnerHTML?: string | undefined;
        spinnerAttrs?: object | undefined;
        spinnerClass?: string | undefined;
        /**
         * @deprecated
         */
        onShowContainer?: (($pluginElement: JQuery, $container: JQuery) => void) | undefined;
        /**
         * @deprecated
         */
        onHideContainer?: (($pluginElement: JQuery, $container: JQuery) => void) | undefined;
        /**
         * @deprecated
         */
        onDestroyContainer?: (($container: JQuery) => void) | undefined;
        hideAnimation?: (($container: JQuery) => void) | undefined;
        showAnimation?: (($container: JQuery) => void) | undefined;
        destroyAfterHide?: boolean | undefined;
        idPrefix?: string | undefined;
        pluginNameSpace?: string | undefined;
        useAddOns?: string [] | undefined;
    }
    
    interface PLoading {
        (options: PLoadingOptions): void;
    
        defaults: PLoadingOptions;
    }
    
    interface JQuery {
        ploading: PLoading;
    }
    
    interface JQueryStatic {
        ploading: PLoading;
    }

    Additional Details

    • Last updated: Thu, 08 Jul 2021 20:19:14 GMT
    • Dependencies: @types/jquery
    • Global values: none

    Credits

    These definitions were written by Soner Köksal.

    Keywords

    none

    Install

    npm i @types/p-loading

    DownloadsWeekly Downloads

    8

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    5.58 kB

    Total Files

    4

    Last publish

    Collaborators

    • types