chore(build): Fix .d.ts generation errors caused by invisible types of exported declarations

Fixes #3098
This commit is contained in:
Mohamed Hegazy 2015-07-09 17:32:42 -07:00 committed by Alex Eagle
parent f42382db3b
commit 573c047d50
9 changed files with 15 additions and 15 deletions

View File

@ -8,7 +8,7 @@ import {
isPresent
} from "angular2/src/facade/lang";
enum TokenType {
export enum TokenType {
CHARACTER,
IDENTIFIER,
KEYWORD,

View File

@ -123,7 +123,7 @@ export class NgFor {
}
}
class RecordViewTuple {
export class RecordViewTuple {
view: ViewRef;
record: any;
constructor(record, view) {

View File

@ -338,14 +338,14 @@ export class SelectorMatcher {
}
class SelectorListContext {
export class SelectorListContext {
alreadyMatched: boolean = false;
constructor(public selectors: CssSelector[]) {}
}
// Store context to pass back selector and context when a selector is matched
class SelectorContext {
export class SelectorContext {
notSelectors: CssSelector[];
constructor(public selector: CssSelector, public cbContext: any,

View File

@ -270,4 +270,4 @@ function moveChildNodes(source: Node, target: Node) {
DOM.appendChild(target, currChild);
currChild = nextChild;
}
}
}

View File

@ -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

View File

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

View File

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

View File

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

View File

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