소스 검색

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