Update view_ref.js

Add return types.
This commit is contained in:
Matan Lurey 2015-05-14 12:36:16 -07:00
parent 666336be1a
commit 6ad5fa0d9d
1 changed files with 3 additions and 3 deletions

View File

@ -3,12 +3,12 @@ import * as viewModule from './view';
import {RenderViewRef} from 'angular2/src/render/api';
// This is a workaround for privacy in Dart as we don't have library parts
export function internalView(viewRef:ViewRef) {
export function internalView(viewRef:ViewRef):viewModule.AppView {
return viewRef._view;
}
// This is a workaround for privacy in Dart as we don't have library parts
export function internalProtoView(protoViewRef:ProtoViewRef) {
export function internalProtoView(protoViewRef:ProtoViewRef):viewModule.AppProtoView {
return isPresent(protoViewRef) ? protoViewRef._protoView : null;
}
@ -26,7 +26,7 @@ export class ViewRef {
return this._view.render;
}
setLocal(contextName: string, value:any) {
setLocal(contextName:string, value:any):void {
this._view.setLocal(contextName, value);
}
}