// Type definitions for angular-loading-bar // Project: https://github.com/chieffancypants/angular-loading-bar // Definitions by: Stephen Lautier // Tyrone Dougherty // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 /// 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; /** * Turn the loading bar on or off */ includeBar?: boolean; /** * HTML template */ spinnerTemplate?: string; /** * Loading bar template */ loadingBarTemplate?: string; /** * Latency Threshold */ latencyThreshold?: number; /** * HTML element selector of parent */ parentSelector?: string; /** * Starting size */ startSize?: number; /** * Give illusion that there's always progress */ autoIncrement?: boolean; /** * 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; } }