@types/knockout.mapping 2.0.40 → 2.0.42

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.
@@ -8,8 +8,8 @@ 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: Tue, 07 Nov 2023 09:09:38 GMT
11
+ * Last updated: Mon, 16 Mar 2026 21:11:59 GMT
12
12
  * Dependencies: [@types/knockout](https://npmjs.com/package/@types/knockout)
13
13
 
14
14
  # Credits
15
- These definitions were written by [Boris Yankov](https://github.com/borisyankov), [Mathias Lorenzen](https://github.com/ffMathy), and [Leonardo Lombardi](https://github.com/ltlombardi).
15
+ These definitions were written by [Boris Yankov](https://github.com/borisyankov), and [Mathias Lorenzen](https://github.com/ffMathy).
@@ -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 ReadonlyArray<any> ? KnockoutReadonlyObservableArrayType<T[P][number]>
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: ReadonlyArray<T>,
95
- options?: KnockoutMappingOptions<ReadonlyArray<T>>,
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: ReadonlyArray<T>,
104
+ source: readonly T[],
105
105
  target: KnockoutReadonlyObservableArrayType<T>,
106
106
  ): KnockoutReadonlyObservableArrayType<T>;
107
107
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/knockout.mapping",
3
- "version": "2.0.40",
3
+ "version": "2.0.42",
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",
@@ -14,11 +14,6 @@
14
14
  "name": "Mathias Lorenzen",
15
15
  "githubUsername": "ffMathy",
16
16
  "url": "https://github.com/ffMathy"
17
- },
18
- {
19
- "name": "Leonardo Lombardi",
20
- "githubUsername": "ltlombardi",
21
- "url": "https://github.com/ltlombardi"
22
17
  }
23
18
  ],
24
19
  "main": "",
@@ -32,6 +27,7 @@
32
27
  "dependencies": {
33
28
  "@types/knockout": "*"
34
29
  },
35
- "typesPublisherContentHash": "15be4d1e4887d7d9543f1ebcd5b7e551931fd24d6f6a6fbc31a3b243fdf4cc2b",
36
- "typeScriptVersion": "4.5"
30
+ "peerDependencies": {},
31
+ "typesPublisherContentHash": "d8a0a69d553472222aa4cc30c37b2847da5ebf1b2ebac958babac2b07409e1a6",
32
+ "typeScriptVersion": "5.2"
37
33
  }