Model isValid should return boolean instead of string

This commit is contained in:
Kazi Manzur Rashid
2013-04-30 13:54:50 +06:00
parent 44e02ee490
commit d2e0be3ea9
+1 -1
View File
@@ -123,7 +123,7 @@ declare module Backbone {
has(attribute: string): bool;
hasChanged(attribute?: string): bool;
isNew(): bool;
isValid(): string;
isValid(): bool;
previous(attribute: string): any;
previousAttributes(): any[];
save(attributes?: any, options?: ModelSaveOptions);