Skip to content

Commit a38a0d6

Browse files
committed
Merge pull request angular#1909 from angular/view-ref-return-types
Update view_ref.js
2 parents 7a4a635 + 6ad5fa0 commit a38a0d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/angular2/src/core/compiler/view_ref.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import * as viewModule from './view';
33
import {RenderViewRef} from 'angular2/src/render/api';
44

55
// This is a workaround for privacy in Dart as we don't have library parts
6-
export function internalView(viewRef:ViewRef) {
6+
export function internalView(viewRef:ViewRef):viewModule.AppView {
77
return viewRef._view;
88
}
99

1010
// This is a workaround for privacy in Dart as we don't have library parts
11-
export function internalProtoView(protoViewRef:ProtoViewRef) {
11+
export function internalProtoView(protoViewRef:ProtoViewRef):viewModule.AppProtoView {
1212
return isPresent(protoViewRef) ? protoViewRef._protoView : null;
1313
}
1414

@@ -26,7 +26,7 @@ export class ViewRef {
2626
return this._view.render;
2727
}
2828

29-
setLocal(contextName: string, value:any) {
29+
setLocal(contextName:string, value:any):void {
3030
this._view.setLocal(contextName, value);
3131
}
3232
}

0 commit comments

Comments
 (0)