Definitions for angular-deferred-bootstrap added (#9178)

This commit is contained in:
Markus Wagner
2016-05-05 18:23:44 +02:00
committed by Masahiro Wakame
parent 28b96be7ad
commit 3db3624fa3
2 changed files with 31 additions and 0 deletions

View File

@@ -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")]
}
});

View 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
}
}