فهرست منبع

fix: incorrect MathRepresentation type (#456)

Co-authored-by: Alvaro Saburido <alvaro.saburido@gmail.com>
Alex 1 سال پیش
والد
کامیت
314b0883b7
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/types/index.ts

+ 1 - 1
src/types/index.ts

@@ -126,7 +126,7 @@ export interface EventHandlers {
 }
 }
 
 
 interface MathRepresentation {
 interface MathRepresentation {
-  set(...args: number[]): any
+  set(...args: number[] | [THREE.ColorRepresentation]): any
 }
 }
 interface VectorRepresentation extends MathRepresentation {
 interface VectorRepresentation extends MathRepresentation {
   setScalar(s: number): any
   setScalar(s: number): any