mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Definitions for angular-deferred-bootstrap added (#9178)
This commit is contained in:
committed by
Masahiro Wakame
parent
28b96be7ad
commit
3db3624fa3
@@ -0,0 +1,11 @@
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
/// <reference path="./angular-deferred-bootstrap.d.ts" />
|
||||
|
||||
deferredBootstrapper.bootstrap(
|
||||
{
|
||||
element: window.document,
|
||||
module: "myApp",
|
||||
resolve: {
|
||||
configuration: ["$http", ($http: ng.IHttpService) => $http.get("config.json")]
|
||||
}
|
||||
});
|
||||
20
angular-deferred-bootstrap/angular-deferred-bootstrap.d.ts
vendored
Normal file
20
angular-deferred-bootstrap/angular-deferred-bootstrap.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// Type definitions for angular-deferred-bootstrap v0.1.9
|
||||
// Project: https://github.com/philippd/angular-deferred-bootstrap
|
||||
// Definitions by: Markus Wagner <https://github.com/Ritzlgrmft/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
|
||||
declare var deferredBootstrapper: angular.IDeferredBootstrapperStatic;
|
||||
|
||||
declare module angular {
|
||||
interface IDeferredBootstrapperStatic {
|
||||
bootstrap(configParam: IConfigParam): ng.IPromise<boolean>
|
||||
}
|
||||
|
||||
interface IConfigParam {
|
||||
element?: Node,
|
||||
module?: string,
|
||||
resolve: any
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user