From 8c58256dc7186214ed54449d1d2644614df8d618 Mon Sep 17 00:00:00 2001 From: Santi Albo Date: Thu, 17 Oct 2013 14:36:13 +0100 Subject: [PATCH] Set viewValue to any everywhere Documentation states `viewValue` and `modelValue` to be a string but other types do work and it's common to use them. --- angularjs/angular.d.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index 1a93d41f70..be2465ff74 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -150,14 +150,11 @@ declare module ng { interface INgModelController { $render(): void; $setValidity(validationErrorKey: string, isValid: boolean): void; - $setViewValue(value: string): void; - - // XXX Not sure about the types here. Documentation states it's a string, but - // I've seen it receiving other types throughout the code. - // Falling back to any for now. + // Documentation states viewValue and modelValue to be a string but other + // types do work and it's common to use them. + $setViewValue(value: any): void; $viewValue: any; - // XXX Same as avove $modelValue: any; $parsers: IModelParser[];