@types/knockout.mapping 2.0.40 → 2.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
knockout.mapping/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for knockout.mapping (https://github.com/
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/knockout.mapping.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT
|
|
12
12
|
* Dependencies: [@types/knockout](https://npmjs.com/package/@types/knockout)
|
|
13
13
|
|
|
14
14
|
# Credits
|
knockout.mapping/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare global {
|
|
|
15
15
|
type KnockoutObservableType<T> = {
|
|
16
16
|
[P in keyof T]: T[P] extends Primitives ? KnockoutObservable<T[P]>
|
|
17
17
|
: T[P] extends any[] ? KnockoutObservableArrayType<T[P][number]>
|
|
18
|
-
: T[P] extends
|
|
18
|
+
: T[P] extends readonly any[] ? KnockoutReadonlyObservableArrayType<T[P][number]>
|
|
19
19
|
: MappedType<T[P]>;
|
|
20
20
|
};
|
|
21
21
|
|
|
@@ -91,8 +91,8 @@ declare global {
|
|
|
91
91
|
* @param target View model object previosly mapped to be updated.
|
|
92
92
|
*/
|
|
93
93
|
fromJS<T>(
|
|
94
|
-
source:
|
|
95
|
-
options?: KnockoutMappingOptions<
|
|
94
|
+
source: readonly T[],
|
|
95
|
+
options?: KnockoutMappingOptions<readonly T[]>,
|
|
96
96
|
target?: KnockoutReadonlyObservableArrayType<T>,
|
|
97
97
|
): KnockoutReadonlyObservableArrayType<T>;
|
|
98
98
|
/**
|
|
@@ -101,7 +101,7 @@ declare global {
|
|
|
101
101
|
* @param target View model object previosly mapped to be updated.
|
|
102
102
|
*/
|
|
103
103
|
fromJS<T>(
|
|
104
|
-
source:
|
|
104
|
+
source: readonly T[],
|
|
105
105
|
target: KnockoutReadonlyObservableArrayType<T>,
|
|
106
106
|
): KnockoutReadonlyObservableArrayType<T>;
|
|
107
107
|
/**
|
knockout.mapping/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/knockout.mapping",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.41",
|
|
4
4
|
"description": "TypeScript definitions for knockout.mapping",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/knockout.mapping",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@types/knockout": "*"
|
|
34
34
|
},
|
|
35
|
-
"typesPublisherContentHash": "
|
|
35
|
+
"typesPublisherContentHash": "49a8fc6cd9d5f706218a63387def5c18a16cd293e91c40c65559bd75c5532845",
|
|
36
36
|
"typeScriptVersion": "4.5"
|
|
37
37
|
}
|