mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 12:16:38 +08:00
Merge pull request #1148 from santialbo/patch-1
Angular.js: Set viewValue to any everywhere
This commit is contained in:
9
angularjs/angular.d.ts
vendored
9
angularjs/angular.d.ts
vendored
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user