2
0
Эх сурвалжийг харах

Merge pull request #21059 from joshuaellis/bugfix/SVGLoaderResult-type

TS: add userData to SVGResult.paths
Mr.doob 4 жил өмнө
parent
commit
6d92613bac

+ 7 - 1
examples/jsm/loaders/SVGLoader.d.ts

@@ -6,8 +6,14 @@ import {
 	Vector3
 	Vector3
 } from '../../../src/Three';
 } from '../../../src/Three';
 
 
+interface SVGResultPaths extends ShapePath {
+	userData?: {
+		[key: string]: any
+	}
+}
+
 export interface SVGResult {
 export interface SVGResult {
-	paths: ShapePath[];
+	paths: SVGResultPaths[];
 	xml: XMLDocument;
 	xml: XMLDocument;
 }
 }