Skip to content
This repository
Browse code

Missing Key Method In Knockout Mapping

  • Loading branch information...
commit 415e25ace5cfa6b6cc9809f237e79e9bfde857aa 1 parent 8bdb0ef
authored January 20, 2013

Showing 1 changed file with 7 additions and 6 deletions. Show diff stats Hide diff stats

  1. 13  knockout.mapping/knockout.mapping.d.ts
13  knockout.mapping/knockout.mapping.d.ts
@@ -17,13 +17,14 @@ interface KnockoutMappingUpdateOptions {
17 17
 }
18 18
 
19 19
 interface KnockoutMappingOptions {
20  
-    ignore? : string[];
21  
-    include? : string[];
22  
-    copy? : string[];
23  
-    mappedProperties? : string[];
24  
-    deferEvaluation? :  bool;
  20
+    ignore?: string[];
  21
+    include?: string[];
  22
+    copy?: string[];
  23
+    mappedProperties?: string[];
  24
+    deferEvaluation?: bool;
25 25
     create?: (options: KnockoutMappingCreateOptions) => void;
26 26
     update?: (options: KnockoutMappingUpdateOptions) => void;
  27
+    key?: (data: any) => any;
27 28
 }
28 29
 
29 30
 interface KnockoutMapping {
@@ -37,7 +38,7 @@ interface KnockoutMapping {
37 38
     defaultOptions(): KnockoutMappingOptions;
38 39
     resetDefaultOptions(): void;
39 40
     getType(x: any): any;
40  
-    visitModel(rootObject: any, callback: Function, options?: { visitedObjects?; parentName?; ignore?; copy?; include?; } ): any;
  41
+    visitModel(rootObject: any, callback: Function, options?: { visitedObjects?; parentName?; ignore?; copy?; include?; }): any;
41 42
 }
42 43
 
43 44
 interface KnockoutStatic {

0 notes on commit 415e25a

Please sign in to comment.
Something went wrong with that request. Please try again.