diff --git a/packages/color/src/defcolor.ts b/packages/color/src/defcolor.ts index d4e053a0b5..f5cff7c1c3 100644 --- a/packages/color/src/defcolor.ts +++ b/packages/color/src/defcolor.ts @@ -1,4 +1,4 @@ -import type { IDeref, NumericArray } from "@thi.ng/api"; +import type { NumericArray } from "@thi.ng/api"; import { implementsFunction, isArrayLike, @@ -158,7 +158,7 @@ export const defColor = ( ? fromColor(src, (src).mode, xs) : new $Color(src, ...xs) : implementsFunction(src, "deref") - ? fromColor((>src).deref(), (src).mode, xs) + ? fromColor(src.deref(), (src).mode, xs) : isNumber(src) ? xs.length && xs.every(isNumber) ? new $Color(...ensureArgs([src, ...xs]))