mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Update knockout.mapping/knockout.mapping-2.0.d.ts
Adding Create Callback for KnockoutMappingOptions.
This commit is contained in:
7
knockout.mapping/knockout.mapping-2.0.d.ts
vendored
7
knockout.mapping/knockout.mapping-2.0.d.ts
vendored
@@ -3,6 +3,10 @@
|
||||
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
|
||||
// Definitions https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface KnockoutMappingCreateOptions {
|
||||
data: any;
|
||||
parent: any;
|
||||
}
|
||||
|
||||
interface KnockoutMappingOptions {
|
||||
ignore? : string[];
|
||||
@@ -10,6 +14,7 @@ interface KnockoutMappingOptions {
|
||||
copy? : string[];
|
||||
mappedProperties? : string[];
|
||||
deferEvaluation? : bool;
|
||||
create?: (options: KnockoutMappingCreateOptions) => void;
|
||||
}
|
||||
|
||||
interface KnockoutMapping {
|
||||
@@ -28,4 +33,4 @@ interface KnockoutMapping {
|
||||
|
||||
interface KnockoutStatic {
|
||||
mapping: KnockoutMapping;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user