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

0.0.39 • Public • Published

Installation

npm install --save @types/angular-loading-bar

Summary

This package contains type definitions for angular-loading-bar (https://github.com/chieffancypants/angular-loading-bar).

Details

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

index.d.ts

/// <reference types="angular" />

declare var _: string;
export = _;

import * as angular from "angular";

declare module "angular" {
    export namespace loadingBar {
        interface ILoadingBarProvider {
            /**
             * Turn the spinner on or off
             */
            includeSpinner?: boolean | undefined;

            /**
             * Turn the loading bar on or off
             */
            includeBar?: boolean | undefined;

            /**
             * HTML template
             */
            spinnerTemplate?: string | undefined;

            /**
             * Loading bar template
             */
            loadingBarTemplate?: string | undefined;

            /**
             * Latency Threshold
             */
            latencyThreshold?: number | undefined;
            /**
             * HTML element selector of parent
             */
            parentSelector?: string | undefined;

            /**
             * Starting size
             */
            startSize?: number | undefined;

            /**
             * Give illusion that there's always progress
             */
            autoIncrement?: boolean | undefined;

            /**
             * Broadcast the start event
             */
            start(): void;

            /**
             * Set the percentage completed
             * @param {number} n - number between 0 and 1
             */
            set(n: number): void;

            /**
             * Get the percentage completed
             * @returns {number}
             */
            status(): number;

            /**
             * Increment the loading bar
             */
            inc(): void;

            /**
             * Complete the loading bar
             */
            complete(): void;
        }
    }

    interface IRequestShortcutConfig {
        /**
         * Indicates that the loading bar should be hidden.
         */
        ignoreLoadingBar?: boolean | undefined;
    }
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: @types/angular

Credits

These definitions were written by Stephen Lautier, and Tyrone Dougherty.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/angular-loading-bar

Weekly Downloads

1,307

Version

0.0.39

License

MIT

Unpacked Size

6.95 kB

Total Files

5

Last publish

Collaborators

  • types