mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Move all packages to a types directory
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
|
||||
|
||||
var app = angular.module('testModule', ['angular-loading-bar']);
|
||||
|
||||
class TestController {
|
||||
|
||||
constructor($http: ng.IHttpService) {
|
||||
|
||||
$http.get("http://xyz.com", { ignoreLoadingBar: true })
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
app.controller('TestController', TestController);
|
||||
|
||||
var barConfig: angular.loadingBar.ILoadingBarProvider[] = [];
|
||||
barConfig.push({
|
||||
includeSpinner: true,
|
||||
includeBar: true,
|
||||
spinnerTemplate: 'template',
|
||||
latencyThreshold: 100
|
||||
});
|
||||
Vendored
+43
@@ -0,0 +1,43 @@
|
||||
// Type definitions for angular-loading-bar
|
||||
// Project: https://github.com/chieffancypants/angular-loading-bar
|
||||
// Definitions by: Stephen Lautier <https://github.com/stephenlautier>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* Latency Threshold
|
||||
*/
|
||||
latencyThreshold?: number;
|
||||
}
|
||||
}
|
||||
|
||||
interface IRequestShortcutConfig {
|
||||
/**
|
||||
* Indicates that the loading bar should be hidden.
|
||||
*/
|
||||
ignoreLoadingBar?: boolean;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"angular-loading-bar-tests.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user