Browse Source

Merge pull request #19870 from ycw/patch-3

TS: fixed GridHelper types
Mr.doob 5 years ago
parent
commit
b5c272cf40
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/helpers/GridHelper.d.ts

+ 3 - 3
src/helpers/GridHelper.d.ts

@@ -6,12 +6,12 @@ export class GridHelper extends LineSegments {
 	constructor(
 	constructor(
 		size: number,
 		size: number,
 		divisions: number,
 		divisions: number,
-		color1?: Color | number,
-		color2?: Color | number
+		color1?: Color | string | number,
+		color2?: Color | string | number
 	);
 	);
 	/**
 	/**
 	 * @deprecated Colors should be specified in the constructor.
 	 * @deprecated Colors should be specified in the constructor.
 	 */
 	 */
-	setColors( color1?: Color | number, color2?: Color | number ): void;
+	setColors( color1?: Color | string | number, color2?: Color | string | number ): void;
 
 
 }
 }