From 54f4edcb208dc415ae67acfdcb28ac346b921cdd Mon Sep 17 00:00:00 2001 From: Grischa Erbe <46897060+grischaerbe@users.noreply.github.com> Date: Thu, 28 Sep 2023 14:23:13 +0200 Subject: [PATCH] Moved function overloads from Color.set to rest types (#615) Co-authored-by: Nathan Bierema --- 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 d31daa4a1..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(r: number, g: number, b: number): this; - set(color: ColorRepresentation): 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