diff --git a/types/src/color.d.ts b/types/src/color.d.ts index 94e2533b7..c6d3e3e52 100644 --- a/types/src/color.d.ts +++ b/types/src/color.d.ts @@ -57,7 +57,9 @@ export type ToColorPrototype any> = T extends ( color: Color, ...args: infer A ) => infer R - ? (...args: A) => R + ? T extends { returns: "color" } + ? (...args: A) => Color + : (...args: A) => R : never; /** Proxy used for space accessors */