Permalink
Browse files

Missing Key Method In Knockout Mapping

  • Loading branch information...
1 parent 8bdb0ef commit 415e25ace5cfa6b6cc9809f237e79e9bfde857aa Anwar Javed committed Jan 20, 2013
Showing with 7 additions and 6 deletions.
  1. +7 −6 knockout.mapping/knockout.mapping.d.ts
@@ -17,13 +17,14 @@ interface KnockoutMappingUpdateOptions {
}
interface KnockoutMappingOptions {
- ignore? : string[];
- include? : string[];
- copy? : string[];
- mappedProperties? : string[];
- deferEvaluation? : bool;
+ ignore?: string[];
+ include?: string[];
+ copy?: string[];
+ mappedProperties?: string[];
+ deferEvaluation?: bool;
create?: (options: KnockoutMappingCreateOptions) => void;
update?: (options: KnockoutMappingUpdateOptions) => void;
+ key?: (data: any) => any;
}
interface KnockoutMapping {
@@ -37,7 +38,7 @@ interface KnockoutMapping {
defaultOptions(): KnockoutMappingOptions;
resetDefaultOptions(): void;
getType(x: any): any;
- visitModel(rootObject: any, callback: Function, options?: { visitedObjects?; parentName?; ignore?; copy?; include?; } ): any;
+ visitModel(rootObject: any, callback: Function, options?: { visitedObjects?; parentName?; ignore?; copy?; include?; }): any;
}
interface KnockoutStatic {

0 comments on commit 415e25a

Please sign in to comment.