@types/three 0.143.1 → 0.143.2

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.
three/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for three (https://threejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 17 Aug 2022 12:32:25 GMT
11
+ * Last updated: Mon, 29 Aug 2022 17:32:33 GMT
12
12
  * Dependencies: [@types/webxr](https://npmjs.com/package/@types/webxr)
13
13
  * Global values: `THREE`
14
14
 
@@ -82,10 +82,10 @@ type FilterConstructorsByScope<T extends AnyConstructors, S> = {
82
82
  * "flattens" the tuple into an union type
83
83
  */
84
84
  type ConstructorUnion<T extends AnyConstructors> =
85
- | (T['a'] extends undefined ? never : T['a'])
86
- | (T['b'] extends undefined ? never : T['b'])
87
- | (T['c'] extends undefined ? never : T['c'])
88
- | (T['d'] extends undefined ? never : T['d']);
85
+ | Exclude<T['a'], undefined>
86
+ | Exclude<T['b'], undefined>
87
+ | Exclude<T['c'], undefined>
88
+ | Exclude<T['d'], undefined>;
89
89
 
90
90
  /**
91
91
  * Extract list of possible scopes - union of the first paramter
three/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/three",
3
- "version": "0.143.1",
3
+ "version": "0.143.2",
4
4
  "description": "TypeScript definitions for three",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
6
6
  "license": "MIT",
@@ -27,6 +27,6 @@
27
27
  "dependencies": {
28
28
  "@types/webxr": "*"
29
29
  },
30
- "typesPublisherContentHash": "c802edb2e06dd446a771cc7178b90024d1fbf05ab8f4a9ea2b7cf7daea5c8fa2",
30
+ "typesPublisherContentHash": "737cbdf423532e44f0ca249fff948668695b32755741113e2aa638786cd7717e",
31
31
  "typeScriptVersion": "4.0"
32
32
  }