chore(build): Fix .d.ts generation errors caused by invisible types of exported declarations
Fixes #3098
This commit is contained in:

committed by
Alex Eagle

parent
f42382db3b
commit
573c047d50
@ -1,8 +1,8 @@
|
||||
import {bind, OpaqueToken} from 'angular2/di';
|
||||
import {bind, Binding, OpaqueToken} from 'angular2/di';
|
||||
import {DateWrapper} from 'angular2/src/facade/lang';
|
||||
|
||||
export class Options {
|
||||
static get DEFAULT_BINDINGS() { return _DEFAULT_BINDINGS; }
|
||||
static get DEFAULT_BINDINGS(): Binding[] { return _DEFAULT_BINDINGS; }
|
||||
// TODO(tbosch): use static initializer when our transpiler supports it
|
||||
static get SAMPLE_ID() { return _SAMPLE_ID; }
|
||||
// TODO(tbosch): use static initializer when our transpiler supports it
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {bind} from 'angular2/di';
|
||||
import {bind, Binding} from 'angular2/di';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {ABSTRACT, BaseException} from 'angular2/src/facade/lang';
|
||||
import {StringMap} from 'angular2/src/facade/collection';
|
||||
@ -8,7 +8,7 @@ import {StringMap} from 'angular2/src/facade/collection';
|
||||
*/
|
||||
@ABSTRACT()
|
||||
export class Metric {
|
||||
static bindTo(delegateToken) {
|
||||
static bindTo(delegateToken): Binding[] {
|
||||
return [bind(Metric).toFactory((delegate) => delegate, [delegateToken])];
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {bind} from 'angular2/di';
|
||||
import {bind, Binding} from 'angular2/di';
|
||||
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {ABSTRACT, BaseException} from 'angular2/src/facade/lang';
|
||||
import {MeasureValues} from './measure_values';
|
||||
@ -9,7 +9,7 @@ import {List} from 'angular2/src/facade/collection';
|
||||
*/
|
||||
@ABSTRACT()
|
||||
export class Reporter {
|
||||
static bindTo(delegateToken) {
|
||||
static bindTo(delegateToken): Binding[] {
|
||||
return [bind(Reporter).toFactory((delegate) => delegate, [delegateToken])];
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {bind} from 'angular2/di';
|
||||
import {bind, Binding} from 'angular2/di';
|
||||
import {List, StringMap} from 'angular2/src/facade/collection';
|
||||
import {ABSTRACT, BaseException} from 'angular2/src/facade/lang';
|
||||
|
||||
@ -11,7 +11,7 @@ import {MeasureValues} from './measure_values';
|
||||
*/
|
||||
@ABSTRACT()
|
||||
export class Validator {
|
||||
static bindTo(delegateToken) {
|
||||
static bindTo(delegateToken): Binding[] {
|
||||
return [bind(Validator).toFactory((delegate) => delegate, [delegateToken])];
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {bind} from 'angular2/di';
|
||||
import {bind, Binding} from 'angular2/di';
|
||||
import {Promise} from 'angular2/src/facade/async';
|
||||
import {BaseException, ABSTRACT} from 'angular2/src/facade/lang';
|
||||
import {List, Map} from 'angular2/src/facade/collection';
|
||||
@ -10,7 +10,7 @@ import {List, Map} from 'angular2/src/facade/collection';
|
||||
*/
|
||||
@ABSTRACT()
|
||||
export class WebDriverAdapter {
|
||||
static bindTo(delegateToken) {
|
||||
static bindTo(delegateToken): Binding[] {
|
||||
return [bind(WebDriverAdapter).toFactory((delegate) => delegate, [delegateToken])];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user