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.
This commit is contained in:
Santi Albo
2013-10-17 14:36:13 +01:00
parent 12d12c69ff
commit 8c58256dc7

View File

@@ -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[];