mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Fixing test failures
This commit is contained in:
52
angular-loading-bar/index.d.ts
vendored
52
angular-loading-bar/index.d.ts
vendored
@@ -5,8 +5,33 @@
|
||||
|
||||
/// <reference types="angularjs" />
|
||||
|
||||
import * as angular from 'angularjs';
|
||||
|
||||
declare namespace angular {
|
||||
declare module 'angularjs' {
|
||||
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;
|
||||
|
||||
/**
|
||||
* Latency Threshold
|
||||
*/
|
||||
latencyThreshold?: number;
|
||||
}
|
||||
}
|
||||
|
||||
interface IRequestShortcutConfig {
|
||||
/**
|
||||
@@ -14,30 +39,5 @@ declare namespace angular {
|
||||
*/
|
||||
ignoreLoadingBar?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
declare namespace angular.loadingBar {
|
||||
|
||||
interface ILoadingBarProvider{
|
||||
/**
|
||||
* Turn the spinner on or off
|
||||
*/
|
||||
includeSpinner?: boolean;
|
||||
|
||||
/**
|
||||
* Turn the loading bar on or off
|
||||
*/
|
||||
includeBar?: boolean;
|
||||
|
||||
/**
|
||||
* HTML template
|
||||
*/
|
||||
spinnerTemplate?: string;
|
||||
|
||||
/**
|
||||
* Latency Threshold
|
||||
*/
|
||||
latencyThreshold?: number;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user