mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Merge remote-tracking branch 'upstream/master' into merge_7_25
This commit is contained in:
@@ -1097,6 +1097,12 @@ function parseTyping() {
|
||||
}
|
||||
}
|
||||
|
||||
function parseWithParams() {
|
||||
var $parse: angular.IParseService;
|
||||
var compiledExp = $parse('a.b.c', () => null);
|
||||
var compiledExp = $parse('a.b.c', null, false);
|
||||
}
|
||||
|
||||
function doBootstrap(element: Element | JQuery, mode: string): ng.auto.IInjectorService {
|
||||
if (mode === 'debug') {
|
||||
return angular.bootstrap(element, ['main', function($provide: ng.auto.IProvideService) {
|
||||
@@ -1104,11 +1110,11 @@ function doBootstrap(element: Element | JQuery, mode: string): ng.auto.IInjector
|
||||
$delegate['debug'] = true;
|
||||
});
|
||||
}, 'debug-helpers'], {
|
||||
debugInfoEnabled: true
|
||||
strictDi: true
|
||||
});
|
||||
}
|
||||
return angular.bootstrap(element, ['main'], {
|
||||
debugInfoEnabled: false
|
||||
strictDi: false
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
14
angular/index.d.ts
vendored
14
angular/index.d.ts
vendored
@@ -43,7 +43,6 @@ declare namespace angular {
|
||||
|
||||
interface IAngularBootstrapConfig {
|
||||
strictDi?: boolean;
|
||||
debugInfoEnabled?: boolean;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
@@ -876,7 +875,7 @@ declare namespace angular {
|
||||
// see http://docs.angularjs.org/api/ng.$parseProvider
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
interface IParseService {
|
||||
(expression: string): ICompiledExpression;
|
||||
(expression: string, interceptorFn?: (value: any, scope: IScope, locals: any) => any, expensiveChecks?: boolean): ICompiledExpression;
|
||||
}
|
||||
|
||||
interface IParseProvider {
|
||||
@@ -988,7 +987,10 @@ declare namespace angular {
|
||||
// DocumentService
|
||||
// see http://docs.angularjs.org/api/ng.$document
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
interface IDocumentService extends JQuery {}
|
||||
interface IDocumentService extends JQuery {
|
||||
// Must return intersection type for index signature compatibility with JQuery
|
||||
[index: number]: HTMLElement & Document;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// ExceptionHandlerService
|
||||
@@ -1718,6 +1720,12 @@ declare namespace angular {
|
||||
* Whether transclusion is enabled. Enabled by default.
|
||||
*/
|
||||
transclude?: boolean | string | {[slot: string]: string};
|
||||
/**
|
||||
* Requires the controllers of other directives and binds them to this component's controller.
|
||||
* The object keys specify the property names under which the required controllers (object values) will be bound.
|
||||
* Note that the required controllers will not be available during the instantiation of the controller,
|
||||
* but they are guaranteed to be available just before the $onInit method is executed!
|
||||
*/
|
||||
require?: {[controller: string]: string};
|
||||
}
|
||||
|
||||
|
||||
2
angular/legacy/angular-1.4.d.ts
vendored
2
angular/legacy/angular-1.4.d.ts
vendored
@@ -886,7 +886,7 @@ declare namespace angular {
|
||||
// see http://docs.angularjs.org/api/ng.$parseProvider
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
interface IParseService {
|
||||
(expression: string): ICompiledExpression;
|
||||
(expression: string, interceptorFn?: (value: any, scope: IScope, locals: any) => any, expensiveChecks?: boolean): ICompiledExpression;
|
||||
}
|
||||
|
||||
interface IParseProvider {
|
||||
|
||||
Reference in New Issue
Block a user