@types/knockout.mapping 2.0.36 → 2.0.37
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: Tue, 11 Jan 2022 16:31:41 GMT
|
|
12
12
|
* Dependencies: [@types/knockout](https://npmjs.com/package/@types/knockout)
|
|
13
13
|
* Global values: `mapping`
|
|
14
14
|
|
knockout.mapping/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ type Primitives = string | number | boolean | symbol;
|
|
|
18
18
|
declare global {
|
|
19
19
|
|
|
20
20
|
type MappedType<T> =
|
|
21
|
-
T extends Primitives ? KnockoutObservable<T> :
|
|
22
|
-
T extends object ? KnockoutObservableType<T> :
|
|
21
|
+
[T] extends [Primitives] ? KnockoutObservable<T> :
|
|
22
|
+
[T] extends [object] ? KnockoutObservableType<T> :
|
|
23
23
|
any;
|
|
24
24
|
|
|
25
25
|
type KnockoutObservableType<T> = {
|
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.37",
|
|
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": "
|
|
36
|
-
"typeScriptVersion": "3.
|
|
35
|
+
"typesPublisherContentHash": "6ba47fc51cd64cd605a372e38acf9a3e911e9b9bea060732350546087f8efd55",
|
|
36
|
+
"typeScriptVersion": "3.8"
|
|
37
37
|
}
|