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 isPresent
} from "angular2/src/facade/lang"; } from "angular2/src/facade/lang";
enum TokenType { export enum TokenType {
CHARACTER, CHARACTER,
IDENTIFIER, IDENTIFIER,
KEYWORD, KEYWORD,

View File

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

View File

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

View File

@ -270,4 +270,4 @@ function moveChildNodes(source: Node, target: Node) {
DOM.appendChild(target, currChild); DOM.appendChild(target, currChild);
currChild = nextChild; 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'; import {DateWrapper} from 'angular2/src/facade/lang';
export class Options { 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 // TODO(tbosch): use static initializer when our transpiler supports it
static get SAMPLE_ID() { return _SAMPLE_ID; } static get SAMPLE_ID() { return _SAMPLE_ID; }
// TODO(tbosch): use static initializer when our transpiler supports it // 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 {Promise, PromiseWrapper} from 'angular2/src/facade/async';
import {ABSTRACT, BaseException} from 'angular2/src/facade/lang'; import {ABSTRACT, BaseException} from 'angular2/src/facade/lang';
import {StringMap} from 'angular2/src/facade/collection'; import {StringMap} from 'angular2/src/facade/collection';
@ -8,7 +8,7 @@ import {StringMap} from 'angular2/src/facade/collection';
*/ */
@ABSTRACT() @ABSTRACT()
export class Metric { export class Metric {
static bindTo(delegateToken) { static bindTo(delegateToken): Binding[] {
return [bind(Metric).toFactory((delegate) => delegate, [delegateToken])]; 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 {Promise, PromiseWrapper} from 'angular2/src/facade/async';
import {ABSTRACT, BaseException} from 'angular2/src/facade/lang'; import {ABSTRACT, BaseException} from 'angular2/src/facade/lang';
import {MeasureValues} from './measure_values'; import {MeasureValues} from './measure_values';
@ -9,7 +9,7 @@ import {List} from 'angular2/src/facade/collection';
*/ */
@ABSTRACT() @ABSTRACT()
export class Reporter { export class Reporter {
static bindTo(delegateToken) { static bindTo(delegateToken): Binding[] {
return [bind(Reporter).toFactory((delegate) => delegate, [delegateToken])]; 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 {List, StringMap} from 'angular2/src/facade/collection';
import {ABSTRACT, BaseException} from 'angular2/src/facade/lang'; import {ABSTRACT, BaseException} from 'angular2/src/facade/lang';
@ -11,7 +11,7 @@ import {MeasureValues} from './measure_values';
*/ */
@ABSTRACT() @ABSTRACT()
export class Validator { export class Validator {
static bindTo(delegateToken) { static bindTo(delegateToken): Binding[] {
return [bind(Validator).toFactory((delegate) => delegate, [delegateToken])]; 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 {Promise} from 'angular2/src/facade/async';
import {BaseException, ABSTRACT} from 'angular2/src/facade/lang'; import {BaseException, ABSTRACT} from 'angular2/src/facade/lang';
import {List, Map} from 'angular2/src/facade/collection'; import {List, Map} from 'angular2/src/facade/collection';
@ -10,7 +10,7 @@ import {List, Map} from 'angular2/src/facade/collection';
*/ */
@ABSTRACT() @ABSTRACT()
export class WebDriverAdapter { export class WebDriverAdapter {
static bindTo(delegateToken) { static bindTo(delegateToken): Binding[] {
return [bind(WebDriverAdapter).toFactory((delegate) => delegate, [delegateToken])]; return [bind(WebDriverAdapter).toFactory((delegate) => delegate, [delegateToken])];
} }