Skip to content

Commit 573c047

Browse files
mhegazyalexeagle
authored andcommitted
chore(build): Fix .d.ts generation errors caused by invisible types of exported declarations
Fixes angular#3098
1 parent f42382d commit 573c047

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

modules/angular2/src/change_detection/parser/lexer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
isPresent
99
} from "angular2/src/facade/lang";
1010

11-
enum TokenType {
11+
export enum TokenType {
1212
CHARACTER,
1313
IDENTIFIER,
1414
KEYWORD,

modules/angular2/src/directives/ng_for.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class NgFor {
123123
}
124124
}
125125

126-
class RecordViewTuple {
126+
export class RecordViewTuple {
127127
view: ViewRef;
128128
record: any;
129129
constructor(record, view) {

modules/angular2/src/render/dom/compiler/selector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,14 +338,14 @@ export class SelectorMatcher {
338338
}
339339

340340

341-
class SelectorListContext {
341+
export class SelectorListContext {
342342
alreadyMatched: boolean = false;
343343

344344
constructor(public selectors: CssSelector[]) {}
345345
}
346346

347347
// Store context to pass back selector and context when a selector is matched
348-
class SelectorContext {
348+
export class SelectorContext {
349349
notSelectors: CssSelector[];
350350

351351
constructor(public selector: CssSelector, public cbContext: any,

modules/angular2/src/render/dom/dom_renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,4 +270,4 @@ function moveChildNodes(source: Node, target: Node) {
270270
DOM.appendChild(target, currChild);
271271
currChild = nextChild;
272272
}
273-
}
273+
}

modules/benchpress/src/common_options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {bind, OpaqueToken} from 'angular2/di';
1+
import {bind, Binding, OpaqueToken} from 'angular2/di';
22
import {DateWrapper} from 'angular2/src/facade/lang';
33

44
export class Options {
5-
static get DEFAULT_BINDINGS() { return _DEFAULT_BINDINGS; }
5+
static get DEFAULT_BINDINGS(): Binding[] { return _DEFAULT_BINDINGS; }
66
// TODO(tbosch): use static initializer when our transpiler supports it
77
static get SAMPLE_ID() { return _SAMPLE_ID; }
88
// TODO(tbosch): use static initializer when our transpiler supports it

modules/benchpress/src/metric.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {bind} from 'angular2/di';
1+
import {bind, Binding} from 'angular2/di';
22
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
33
import {ABSTRACT, BaseException} from 'angular2/src/facade/lang';
44
import {StringMap} from 'angular2/src/facade/collection';
@@ -8,7 +8,7 @@ import {StringMap} from 'angular2/src/facade/collection';
88
*/
99
@ABSTRACT()
1010
export class Metric {
11-
static bindTo(delegateToken) {
11+
static bindTo(delegateToken): Binding[] {
1212
return [bind(Metric).toFactory((delegate) => delegate, [delegateToken])];
1313
}
1414

modules/benchpress/src/reporter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {bind} from 'angular2/di';
1+
import {bind, Binding} from 'angular2/di';
22
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
33
import {ABSTRACT, BaseException} from 'angular2/src/facade/lang';
44
import {MeasureValues} from './measure_values';
@@ -9,7 +9,7 @@ import {List} from 'angular2/src/facade/collection';
99
*/
1010
@ABSTRACT()
1111
export class Reporter {
12-
static bindTo(delegateToken) {
12+
static bindTo(delegateToken): Binding[] {
1313
return [bind(Reporter).toFactory((delegate) => delegate, [delegateToken])];
1414
}
1515

modules/benchpress/src/validator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {bind} from 'angular2/di';
1+
import {bind, Binding} from 'angular2/di';
22
import {List, StringMap} from 'angular2/src/facade/collection';
33
import {ABSTRACT, BaseException} from 'angular2/src/facade/lang';
44

@@ -11,7 +11,7 @@ import {MeasureValues} from './measure_values';
1111
*/
1212
@ABSTRACT()
1313
export class Validator {
14-
static bindTo(delegateToken) {
14+
static bindTo(delegateToken): Binding[] {
1515
return [bind(Validator).toFactory((delegate) => delegate, [delegateToken])];
1616
}
1717

modules/benchpress/src/web_driver_adapter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {bind} from 'angular2/di';
1+
import {bind, Binding} from 'angular2/di';
22
import {Promise} from 'angular2/src/facade/async';
33
import {BaseException, ABSTRACT} from 'angular2/src/facade/lang';
44
import {List, Map} from 'angular2/src/facade/collection';
@@ -10,7 +10,7 @@ import {List, Map} from 'angular2/src/facade/collection';
1010
*/
1111
@ABSTRACT()
1212
export class WebDriverAdapter {
13-
static bindTo(delegateToken) {
13+
static bindTo(delegateToken): Binding[] {
1414
return [bind(WebDriverAdapter).toFactory((delegate) => delegate, [delegateToken])];
1515
}
1616

0 commit comments

Comments
 (0)