From f266b7e64fecec133a8d88d8e61a4464cdee6c8e Mon Sep 17 00:00:00 2001 From: Grischa Erbe <46897060+grischaerbe@users.noreply.github.com> Date: Thu, 28 Sep 2023 01:21:56 +0200 Subject: [PATCH] Moved function overloads from Color#set to rest types in order for `Parameters` utility type to pick it up correctly --- types/three/src/math/Color.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/three/src/math/Color.d.ts b/types/three/src/math/Color.d.ts index ef2561946..1dc434cfe 100644 --- a/types/three/src/math/Color.d.ts +++ b/types/three/src/math/Color.d.ts @@ -204,8 +204,7 @@ export class Color { */ b: number; - set(color: ColorRepresentation): this; - set(r: number, g: number, b: number): this; + set(...args: [color: ColorRepresentation] | [r: number, g: number, b: number]): this; /** * Sets this color's {@link r}, {@link g} and {@link b} components from the x, y, and z components of the specified