X Tutup
Skip to content

Commit 7f6289c

Browse files
alexeaglevsavkin
authored andcommitted
fix(typings): two errors not reported by our build:
third_party/javascript/angular2/github/modules/angular2/src/core/platform_bindings.ts:5:14: Exported variable 'EXCEPTION_PROVIDER' has or is using name 'Provider' from external module third_party/javascript/angular2/github/modules/angular2/src/core/di/provider but cannot be named. third_party/javascript/angular2/github/modules/angular2/src/core/platform_bindings.ts:8:14: Exported variable 'EXCEPTION_BINDING' has or is using name 'Provider' from external module third_party/javascript/angular2/github/modules/angular2/src/core/di/provider but cannot be named. third_party/javascript/angular2/github/modules/angular2/src/mock/animation_builder_mock.ts:11:10: Return type of public method from exported class has or is using private name 'MockCssAnimationBuilder'.
1 parent 78280a4 commit 7f6289c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import {provide} from 'angular2/src/core/di';
2+
import {Provider} from "angular2/src/core/di/provider";
23
import {ExceptionHandler} from 'angular2/src/facade/exceptions';
34
import {DOM} from 'angular2/src/core/dom/dom_adapter';
45

5-
export const EXCEPTION_PROVIDER =
6+
export const EXCEPTION_PROVIDER: Provider =
67
provide(ExceptionHandler, {useFactory: () => new ExceptionHandler(DOM, false), deps: []});
78

8-
export const EXCEPTION_BINDING = EXCEPTION_PROVIDER;
9+
export const EXCEPTION_BINDING = EXCEPTION_PROVIDER;

modules/angular2/src/mock/animation_builder_mock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {BrowserDetails} from 'angular2/src/animate/browser_details';
88
@Injectable()
99
export class MockAnimationBuilder extends AnimationBuilder {
1010
constructor() { super(null); }
11-
css(): MockCssAnimationBuilder { return new MockCssAnimationBuilder(); }
11+
css(): CssAnimationBuilder { return new MockCssAnimationBuilder(); }
1212
}
1313

1414
class MockCssAnimationBuilder extends CssAnimationBuilder {

0 commit comments

Comments
 (0)
X Tutup