Преглед на файлове

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 {
-  set(...args: number[]): any
+  set(...args: number[] | [THREE.ColorRepresentation]): any
 }
 interface VectorRepresentation extends MathRepresentation {
   setScalar(s: number): any