@types/three 0.147.0 → 0.147.1

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: Thu, 29 Dec 2022 19:32:53 GMT
11
+ * Last updated: Fri, 30 Dec 2022 23:03:50 GMT
12
12
  * Dependencies: [@types/webxr](https://npmjs.com/package/@types/webxr)
13
13
  * Global values: `THREE`
14
14
 
@@ -110,7 +110,7 @@ export type Fn<P extends FunctionNodeArguments> = P extends readonly [...unknown
110
110
  ? ProxiedTuple<P>
111
111
  : readonly [ProxiedObject<P>];
112
112
 
113
- // tslint:disable:no-unnecessary-generics
113
+ /* eslint-disable no-unnecessary-generics */
114
114
  export function func<P extends FunctionNodeArguments>(
115
115
  code: string,
116
116
  includes?: CodeNodeInclude[],
@@ -120,7 +120,7 @@ export function fn<P extends FunctionNodeArguments>(
120
120
  code: string,
121
121
  includes?: CodeNodeInclude[],
122
122
  ): (...params: Fn<P>) => Swizzable;
123
- // tslint:enable:no-unnecessary-generics
123
+ /* eslint-enable no-unnecessary-generics */
124
124
 
125
125
  export const instanceIndex: Swizzable<InstanceIndexNode>;
126
126
  export function label(node: NodeRepresentation, name?: string): Swizzable<VarNode>;
three/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/three",
3
- "version": "0.147.0",
3
+ "version": "0.147.1",
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": "ada9d7ae4579346a43c927cb2bb915136e542a27b0d12fd83ad85b97b699d134",
30
+ "typesPublisherContentHash": "817382c65c940c6161d82bd35bba71b745760fd0e4d06c8cc05eb3b2953c438c",
31
31
  "typeScriptVersion": "4.2"
32
32
  }
@@ -12,7 +12,7 @@ export class ObjectLoader extends Loader {
12
12
 
13
13
  load(
14
14
  url: string,
15
- // tslint:disable-next-line:no-unnecessary-generics
15
+ // eslint-disable-next-line no-unnecessary-generics
16
16
  onLoad?: <ObjectType extends Object3D>(object: ObjectType) => void,
17
17
  onProgress?: (event: ProgressEvent) => void,
18
18
  onError?: (event: Error | ErrorEvent) => void,
@@ -20,11 +20,11 @@ export class ObjectLoader extends Loader {
20
20
  loadAsync<ObjectType extends Object3D>(
21
21
  url: string,
22
22
  onProgress?: (event: ProgressEvent) => void,
23
- ): // tslint:disable-next-line:no-unnecessary-generics
23
+ ): // eslint-disable-next-line no-unnecessary-generics
24
24
  Promise<ObjectType>;
25
- // tslint:disable-next-line:no-unnecessary-generics
25
+ // eslint-disable-next-line no-unnecessary-generics
26
26
  parse<T extends Object3D>(json: any, onLoad?: (object: Object3D) => void): T;
27
- // tslint:disable-next-line:no-unnecessary-generics
27
+ // eslint-disable-next-line no-unnecessary-generics
28
28
  parseAsync<T extends Object3D>(json: any): Promise<T>;
29
29
  parseGeometries(json: any): { [key: string]: InstancedBufferGeometry | BufferGeometry }; // Array of BufferGeometry or Geometry or Geometry2.
30
30
  parseMaterials(json: any, textures: Texture[]): Material[]; // Array of Classes that inherits from Matrial.
@@ -37,6 +37,6 @@ export class ObjectLoader extends Loader {
37
37
  geometries: any[],
38
38
  materials: Material[],
39
39
  animations: AnimationClip[],
40
- ): // tslint:disable-next-line:no-unnecessary-generics
40
+ ): // eslint-disable-next-line no-unnecessary-generics
41
41
  T;
42
42
  }