JSPM

  • Created
  • Published
  • Downloads 634803
  • Score
    100M100P100Q184651F
  • License MIT

TypeScript definitions for nprogress

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/nprogress) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm install --save @types/nprogress

    Summary

    This package contains type definitions for nprogress (https://github.com/rstacruz/nprogress).

    Details

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

    index.d.ts

    declare namespace nProgress {
        interface NProgressOptions {
            minimum: number;
            template: string;
            easing: string;
            speed: number;
            trickle: boolean;
            trickleSpeed: number;
            showSpinner: boolean;
            parent: string;
            positionUsing: string;
            barSelector: string;
            spinnerSelector: string;
        }
    
        interface NProgress {
            version: string;
            settings: NProgressOptions;
            status: number | null;
    
            configure(options: Partial<NProgressOptions>): NProgress;
            set(number: number): NProgress;
            isStarted(): boolean;
            start(): NProgress;
            done(force?: boolean): NProgress;
            inc(amount?: number): NProgress;
            trickle(): NProgress;
    
            /* Internal */
    
            render(fromStart?: boolean): HTMLDivElement;
            remove(): void;
            isRendered(): boolean;
            getPositioningCSS(): "translate3d" | "translate" | "margin";
        }
    }
    
    declare const nProgress: nProgress.NProgress;
    export = nProgress;
    

    Additional Details

    • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
    • Dependencies: none

    Credits

    These definitions were written by Judah Gabriel Himango, and Ovyerus.