Z:\color.js>npm run build > colorjs.io@0.5.0 build > run-s build:apidocs build:html build:js build:ts build:js:legacy build:space-accessors > colorjs.io@0.5.0 build:apidocs > npx typedoc [info] Loaded plugin typedoc-plugin-rename-defaults [warning] The entrypoint glob ./src/space.d.ts did not match any files. [warning] __module, defined in ./src/contrast/index.js, is referenced by types.Algorithms but not included in the documentation. [warning] default, defined in ./src/Format.js, is referenced by index-fn.SpaceFormat.[instance] but not included in the documentation. [warning] GetAllOptions, defined in ./src/getAll.js, is referenced by index-fn.getAll.getAll.options but not included in the documentation. [warning] Failed to resolve link to "" in comment for types.RangeOptions.space. [warning] Failed to resolve link to "" in comment for types.StepsOptions.space. [warning] Failed to resolve link to "" in comment for color.Color.deltaEMethods.__type.deltaEOK2.__type. [warning] Failed to resolve link to "" in comment for deltaE.deltaE.__type.deltaEOK2.__type. [info] Documentation generated at ./api [info] JSON written to ./api/docs.json > colorjs.io@0.5.0 build:html > npx @11ty/eleventy --config=_build/eleventy.js [11ty] Writing ./notebook/index.html from ./notebook/index.njk [11ty] Writing ./docs/index.html from ./docs/index.njk [11ty] Writing ./get/index.html from ./get/index.njk [11ty] Writing ./index.html from ./README.md (njk) [11ty] Writing ./docs/spaces.html from ./docs/spaces.njk [11ty] Writing ./docs/gamut-mapping.html from ./docs/gamut-mapping.md (njk) [11ty] Writing ./docs/procedural.html from ./docs/procedural.md (njk) [11ty] Writing ./docs/the-color-object.html from ./docs/the-color-object.md (njk) [11ty] Writing ./docs/adaptation.html from ./docs/adaptation.md (njk) [11ty] Writing ./docs/color-difference.html from ./docs/color-difference.md (njk) [11ty] Writing ./docs/contrast.html from ./docs/contrast.md (njk) [11ty] Writing ./docs/manipulation.html from ./docs/manipulation.md (njk) [11ty] Writing ./docs/output.html from ./docs/output.md (njk) [11ty] Writing ./docs/interpolation.html from ./docs/interpolation.md (njk) [11ty] Wrote 14 files in 1.15 seconds (82.1ms each, v3.0.0-alpha.5) > colorjs.io@0.5.0 build:js > rollup -c _build/rollup.config.js src/index.js → dist/color.global.js, dist/color.global.min.js, dist/color.js, dist/color.min.js, dist/color.cjs, dist/color.min.cjs... created dist/color.global.js, dist/color.global.min.js, dist/color.js, dist/color.min.js, dist/color.cjs, dist/color.min.cjs in 1.5s src/index-fn.js → dist/color-fn.cjs, dist/color-fn.min.cjs... created dist/color-fn.cjs, dist/color-fn.min.cjs in 676ms > colorjs.io@0.5.0 build:ts > node ./scripts/copy-declarations.js && tsc || exit 0 src/interpolation.js:27:5 - error TS2394: This overload signature is not compatible with its implementation signature. 27 * @overload ~~~~~~~~ src/interpolation.js:41:17 41 export function mix (c1, c2, p = .5, o = {}) { ~~~ The implementation signature is declared here. src/parse.js:49:24 - error TS2339: Property 'findFormat' does not exist on type 'typeof ColorSpace'. 49 format = ColorSpace.findFormat({name, id: ids, type: "function"}); ~~~~~~~~~~ src/parse.js:81:24 - error TS2339: Property 'findFormat' does not exist on type 'typeof ColorSpace'. 81 format = ColorSpace.findFormat({name, type: "function"}); ~~~~~~~~~~ src/parse.js:95:10 - error TS2339: Property 'alphaType' does not exist on type 'ArgumentMeta'. 95 meta.alphaType = types.pop(); ~~~~~~~~~ src/parse.js:125:5 - error TS2322: Type 'import("Z:/color.js/src/Format").default' is not assignable to type 'import("Z:/color.js/src/ColorSpace").Format'. Types of property 'coords' are incompatible. Type 'Type[][]' is not assignable to type 'string[]'. Type 'Type[]' is not assignable to type 'string'. 125 format = space.getFormat(format); ~~~~~~ src/serialize.js:35:12 - error TS2339: Property 'parseMeta' does not exist on type 'ColorObject | PlainColorObject'. Property 'parseMeta' does not exist on type 'ColorObject'. 35 if (color.parseMeta && !format) { ~~~~~~~~~ src/serialize.js:36:13 - error TS2339: Property 'parseMeta' does not exist on type 'ColorObject | PlainColorObject'. Property 'parseMeta' does not exist on type 'ColorObject'. 36 if (color.parseMeta.format.canSerialize()) { ~~~~~~~~~ src/serialize.js:37:19 - error TS2339: Property 'parseMeta' does not exist on type 'ColorObject | PlainColorObject'. Property 'parseMeta' does not exist on type 'ColorObject'. 37 format = color.parseMeta.format; ~~~~~~~~~ src/serialize.js:38:21 - error TS2339: Property 'parseMeta' does not exist on type 'ColorObject | PlainColorObject'. Property 'parseMeta' does not exist on type 'ColorObject'. 38 formatId = color.parseMeta.formatId; ~~~~~~~~~ src/serialize.js:41:25 - error TS2339: Property 'parseMeta' does not exist on type 'ColorObject | PlainColorObject'. Property 'parseMeta' does not exist on type 'ColorObject'. 41 coordFormat ??= color.parseMeta.types; ~~~~~~~~~ src/serialize.js:42:25 - error TS2339: Property 'parseMeta' does not exist on type 'ColorObject | PlainColorObject'. Property 'parseMeta' does not exist on type 'ColorObject'. 42 alphaFormat ??= color.parseMeta.alphaType; ~~~~~~~~~ src/serialize.js:43:20 - error TS2339: Property 'parseMeta' does not exist on type 'ColorObject | PlainColorObject'. Property 'parseMeta' does not exist on type 'ColorObject'. 43 commas ??= color.parseMeta.commas; ~~~~~~~~~ src/serialize.js:48:24 - error TS2339: Property 'getFormat' does not exist on type 'string | ColorSpace'. Property 'getFormat' does not exist on type 'string'. 48 format = color.space.getFormat(format) ?? ColorSpace.findFormat(formatId); ~~~~~~~~~ src/serialize.js:48:56 - error TS2339: Property 'findFormat' does not exist on type 'typeof ColorSpace'. 48 format = color.space.getFormat(format) ?? ColorSpace.findFormat(formatId); ~~~~~~~~~~ src/serialize.js:53:24 - error TS2339: Property 'getFormat' does not exist on type 'string | ColorSpace'. Property 'getFormat' does not exist on type 'string'. 53 format = color.space.getFormat("default") ?? ColorSpace.DEFAULT_FORMAT; ~~~~~~~~~ src/serialize.js:54:21 - error TS2339: Property 'name' does not exist on type 'string | Format'. Property 'name' does not exist on type 'string'. 54 formatId = format.name; ~~~~ src/serialize.js:57:23 - error TS2339: Property 'space' does not exist on type 'string | Format'. Property 'space' does not exist on type 'string'. 57 if (format && format.space && format.space !== color.space) { ~~~~~ src/serialize.js:57:39 - error TS2339: Property 'space' does not exist on type 'string | Format'. Property 'space' does not exist on type 'string'. 57 if (format && format.space && format.space !== color.space) { ~~~~~ src/serialize.js:60:28 - error TS2339: Property 'space' does not exist on type 'string | Format'. Property 'space' does not exist on type 'string'. 60 color = to(color, format.space); ~~~~~ src/serialize.js:69:21 - error TS2339: Property 'toGamut' does not exist on type 'string | Format'. Property 'toGamut' does not exist on type 'string'. 69 inGamut ||= format.toGamut; ~~~~~~~ src/serialize.js:73:26 - error TS2345: Argument of type 'ColorObject | PlainColorObject' is not assignable to parameter of type 'PlainColorObject'. Type 'ColorObject' is not assignable to type 'PlainColorObject'. Types of property 'space' are incompatible. Type 'string | ColorSpace' is not assignable to type 'ColorSpace'. Type 'string' is not assignable to type 'ColorSpace'. 73 coords = toGamut(clone(color), inGamut === true ? undefined : inGamut).coords; ~~~~~ src/serialize.js:76:13 - error TS2339: Property 'type' does not exist on type 'string | Format'. Property 'type' does not exist on type 'string'. 76 if (format.type === "custom") { ~~~~ src/serialize.js:77:14 - error TS2339: Property 'serialize' does not exist on type 'string | Format'. Property 'serialize' does not exist on type 'string'. 77 if (format.serialize) { ~~~~~~~~~ src/serialize.js:78:17 - error TS2339: Property 'serialize' does not exist on type 'string | Format'. Property 'serialize' does not exist on type 'string'. 78 ret = format.serialize(coords, color.alpha, options); ~~~~~~~~~ src/serialize.js:86:21 - error TS2339: Property 'name' does not exist on type 'string | Format'. Property 'name' does not exist on type 'string'. 86 let name = format.name || "color"; ~~~~ src/serialize.js:88:21 - error TS2339: Property 'serializeCoords' does not exist on type 'string | Format'. Property 'serializeCoords' does not exist on type 'string'. 88 let args = format.serializeCoords(coords, precision, coordFormat); ~~~~~~~~~~~~~~~ src/serialize.js:92:23 - error TS2339: Property 'id' does not exist on type 'string | Format'. Property 'id' does not exist on type 'string'. 92 let cssId = format.id || format.ids?.[0] || color.space.cssId || color.space.id; ~~ src/serialize.js:92:36 - error TS2339: Property 'ids' does not exist on type 'string | Format'. Property 'ids' does not exist on type 'string'. 92 let cssId = format.id || format.ids?.[0] || color.space.cssId || color.space.id; ~~~ src/serialize.js:92:60 - error TS2339: Property 'cssId' does not exist on type 'string | ColorSpace'. Property 'cssId' does not exist on type 'string'. 92 let cssId = format.id || format.ids?.[0] || color.space.cssId || color.space.id; ~~~~~ src/serialize.js:92:81 - error TS2339: Property 'id' does not exist on type 'string | ColorSpace'. Property 'id' does not exist on type 'string'. 92 let cssId = format.id || format.ids?.[0] || color.space.cssId || color.space.id; ~~ src/serialize.js:104:32 - error TS2339: Property 'type' does not exist on type 'boolean | "" | "" | { type?: "" | ""; include?: boolean; }'. Property 'type' does not exist on type 'false'. 104 let alphaType = alphaFormat?.type ?? ""; ~~~~ src/serialize.js:105:37 - error TS2339: Property 'include' does not exist on type 'boolean | "" | "" | { type?: "" | ""; include?: boolean; }'. Property 'include' does not exist on type 'false'. 105 let serializeAlpha = alphaFormat?.include === true || format.alpha === true || (alphaFormat?.include !== false && format.alpha !== false && alpha < 1); ~~~~~~~ src/serialize.js:105:64 - error TS2339: Property 'alpha' does not exist on type 'string | Format'. Property 'alpha' does not exist on type 'string'. 105 let serializeAlpha = alphaFormat?.include === true || format.alpha === true || (alphaFormat?.include !== false && format.alpha !== false && alpha < 1); ~~~~~ src/serialize.js:105:96 - error TS2339: Property 'include' does not exist on type 'boolean | "" | "" | { type?: "" | ""; include?: boolean; }'. Property 'include' does not exist on type 'false'. 105 let serializeAlpha = alphaFormat?.include === true || format.alpha === true || (alphaFormat?.include !== false && format.alpha !== false && alpha < 1); ~~~~~~~ src/serialize.js:105:124 - error TS2339: Property 'alpha' does not exist on type 'string | Format'. Property 'alpha' does not exist on type 'string'. 105 let serializeAlpha = alphaFormat?.include === true || format.alpha === true || (alphaFormat?.include !== false && format.alpha !== false && alpha < 1); ~~~~~ src/serialize.js:108:21 - error TS2339: Property 'commas' does not exist on type 'string | Format'. Property 'commas' does not exist on type 'string'. 108 commas ??= format.commas; ~~~~~~ src/space-accessors.js:60:76 - error TS2469: The '>=' operator cannot be applied to type 'symbol'. 60 if (property && typeof property !== "symbol" && !(property in obj) || property >= 0) { ~~~~~~~~ src/spaces/cam16.js:172:13 - error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 172 Math.min(f * (1 - 1 / 3.6 * Math.exp((-env.la - 42) / 92)), 1), ~ src/spaces/cam16.js:214:8 - error TS2447: The '^' operator is not allowed for boolean types. Consider using '!==' instead. 214 if (!((cam16.J !== undefined) ^ (cam16.Q !== undefined))) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/spaces/cam16.js:218:8 - error TS2447: The '^' operator is not allowed for boolean types. Consider using '!==' instead. 218 if (!((cam16.C !== undefined) ^ (cam16.M !== undefined) ^ (cam16.s !== undefined))) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/spaces/cam16.js:218:60 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 218 if (!((cam16.C !== undefined) ^ (cam16.M !== undefined) ^ (cam16.s !== undefined))) { ~~~~~~~~~~~~~~~~~~~~~~~ src/spaces/cam16.js:223:8 - error TS2447: The '^' operator is not allowed for boolean types. Consider using '!==' instead. 223 if (!((cam16.h !== undefined) ^ (cam16.H !== undefined))) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/spaces/cam16.js:250:18 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 250 Jroot = 0.25 * env.c * cam16.Q / ((env.aW + 4) * env.flRoot); ~~~~~ src/spaces/cam16.js:250:38 - error TS2365: Operator '+' cannot be applied to types 'unknown' and '4'. 250 Jroot = 0.25 * env.c * cam16.Q / ((env.aW + 4) * env.flRoot); ~~~~~~~~~~ src/spaces/cam16.js:250:52 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 250 Jroot = 0.25 * env.c * cam16.Q / ((env.aW + 4) * env.flRoot); ~~~~~~~~~~ src/spaces/cam16.js:259:22 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 259 alpha = (cam16.M / env.flRoot) / Jroot; ~~~~~~~~~~ src/spaces/cam16.js:262:38 - error TS2365: Operator '+' cannot be applied to types 'unknown' and '4'. 262 alpha = 0.0004 * (cam16.s ** 2) * (env.aW + 4) / env.c; ~~~~~~~~~~ src/spaces/cam16.js:262:52 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 262 alpha = 0.0004 * (cam16.s ** 2) * (env.aW + 4) / env.c; ~~~~~ src/spaces/cam16.js:265:42 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'number'. 265 alpha * Math.pow(1.64 - Math.pow(0.29, env.n), -0.73), ~~~~~ src/spaces/cam16.js:273:12 - error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 273 const A = env.aW * spow(Jroot, 2 / env.c / env.z); ~~~~~~ src/spaces/cam16.js:273:37 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 273 const A = env.aW * spow(Jroot, 2 / env.c / env.z); ~~~~~ src/spaces/cam16.js:273:45 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 273 const A = env.aW * spow(Jroot, 2 / env.c / env.z); ~~~~~ src/spaces/cam16.js:276:24 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 276 const p1 = 5e4 / 13 * env.nc * env.ncb * et; ~~~~~~ src/spaces/cam16.js:276:33 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 276 const p1 = 5e4 / 13 * env.nc * env.ncb * et; ~~~~~~~ src/spaces/cam16.js:277:17 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 277 const p2 = A / env.nbb; ~~~~~~~ src/spaces/cam16.js:291:3 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'number'. 291 env.fl, ~~~~~~ src/spaces/cam16.js:319:3 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'number'. 319 env.fl, ~~~~~~ src/spaces/cam16.js:331:14 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 331 5e4 / 13 * env.nc * env.ncb * ~~~~~~ src/spaces/cam16.js:331:23 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 331 5e4 / 13 * env.nc * env.ncb * ~~~~~~~ src/spaces/cam16.js:337:62 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'number'. 337 const alpha = spow(t, 0.9) * Math.pow(1.64 - Math.pow(0.29, env.n), 0.73); ~~~~~ src/spaces/cam16.js:340:12 - error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 340 const A = env.nbb * (2 * rgbA[0] + rgbA[1] + 0.05 * rgbA[2]); ~~~~~~~ src/spaces/cam16.js:342:25 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 342 const Jroot = spow(A / env.aW, 0.5 * env.c * env.z); ~~~~~~ src/spaces/cam16.js:342:39 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 342 const Jroot = spow(A / env.aW, 0.5 * env.c * env.z); ~~~~~ src/spaces/cam16.js:342:47 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 342 const Jroot = spow(A / env.aW, 0.5 * env.c * env.z); ~~~~~ src/spaces/cam16.js:348:17 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 348 const Q = (4 / env.c * Jroot * (env.aW + 4) * env.flRoot); ~~~~~ src/spaces/cam16.js:348:34 - error TS2365: Operator '+' cannot be applied to types 'unknown' and '4'. 348 const Q = (4 / env.c * Jroot * (env.aW + 4) * env.flRoot); ~~~~~~~~~~ src/spaces/cam16.js:348:48 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 348 const Q = (4 / env.c * Jroot * (env.aW + 4) * env.flRoot); ~~~~~~~~~~ src/spaces/cam16.js:354:16 - error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 354 const M = C * env.flRoot; ~~~~~~~~~~ src/spaces/cam16.js:363:22 - error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 363 const s = 50 * spow(env.c * alpha / (env.aW + 4), 1 / 2); ~~~~~ src/spaces/cam16.js:363:39 - error TS2365: Operator '+' cannot be applied to types 'unknown' and '4'. 363 const s = 50 * spow(env.c * alpha / (env.aW + 4), 1 / 2); ~~~~~~~~~~ src/spaces/cam16.js:400:30 - error TS2345: Argument of type '{ discounting: boolean; refWhite: [number, number, number]; surround: "dark" | "dim" | "average"; la: number; yb: number; c: string; nc: string; fl: number; flRoot: number; n: number; z: number; nbb: number; ncb: number; dRgb: number[]; dRgbInv: number[]; aW: number; }' is not assignable to parameter of type 'Record'. Index signature for type 'string' is missing in type '{ discounting: boolean; refWhite: [number, number, number]; surround: "dark" | "dim" | "average"; la: number; yb: number; c: string; nc: string; fl: number; flRoot: number; n: number; z: number; nbb: number; ncb: number; dRgb: number[]; dRgbInv: number[]; aW: number; }'. 400 const cam16 = toCam16(xyz, viewingConditions); ~~~~~~~~~~~~~~~~~ src/spaces/cam16.js:405:4 - error TS2345: Argument of type '{ J: number; M: number; h: number; }' is not assignable to parameter of type 'Cam16Object'. Type '{ J: number; M: number; h: number; }' is missing the following properties from type 'Cam16Object': C, s, Q, H 405 {J: cam16[0], M: cam16[1], h: cam16[2]}, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/spaces/hct.js:68:19 - error TS2345: Argument of type '{ J: number; C: any; h: any; }' is not assignable to parameter of type 'Cam16Object'. Type '{ J: number; C: any; h: any; }' is missing the following properties from type 'Cam16Object': s, Q, M, H 68 xyz = fromCam16({J: j, C: c, h: h}, env); ~~~~~~~~~~~~~~~~~~ src/spaces/hct.js:93:19 - error TS2345: Argument of type '{ J: number; C: any; h: any; }' is not assignable to parameter of type 'Cam16Object'. Type '{ J: number; C: any; h: any; }' is missing the following properties from type 'Cam16Object': s, Q, M, H 93 return fromCam16({J: j, C: c, h: h}, env); ~~~~~~~~~~~~~~~~~~ src/spaces/hct.js:103:29 - error TS2345: Argument of type '{ discounting: boolean; refWhite: [number, number, number]; surround: "dark" | "dim" | "average"; la: number; yb: number; c: string; nc: string; fl: number; flRoot: number; n: number; z: number; nbb: number; ncb: number; dRgb: number[]; dRgbInv: number[]; aW: number; }' is not assignable to parameter of type 'Record'. 103 const cam16 = toCam16(xyz, viewingConditions); ~~~~~~~~~~~~~~~~~ src/spaces/lch.js:28:12 - error TS2339: Property 'ε' does not exist on type 'SpaceOptions'. 28 if (this.ε === undefined) { ~ src/spaces/lch.js:29:40 - error TS2339: Property 'coords' does not exist on type 'string | ColorSpace'. Property 'coords' does not exist on type 'string'. 29 let range = Object.values(this.base.coords)[1].refRange; ~~~~~~ src/spaces/lch.js:31:9 - error TS2339: Property 'ε' does not exist on type 'SpaceOptions'. 31 this.ε = extent / 100000; ~ src/spaces/lch.js:36:41 - error TS2339: Property 'ε' does not exist on type 'SpaceOptions'. 36 let isAchromatic = Math.abs(a) < this.ε && Math.abs(b) < this.ε; ~ src/spaces/lch.js:36:65 - error TS2339: Property 'ε' does not exist on type 'SpaceOptions'. 36 let isAchromatic = Math.abs(a) < this.ε && Math.abs(b) < this.ε; ~ src/spaces/srgb.js:78:34 - error TS2769: No overload matches this call. The last overload gave the following error. Argument of type '(component: string) => void' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. Type 'void' is not assignable to type 'string'. 78 str.replace(/[a-f0-9]{2}/gi, component => { ~~~~~~~~~~~~~~ node_modules/typescript/lib/lib.es5.d.ts:470:5 470 replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The last overload is declared here. src/toGamut.js:75:3 - error TS2739: Type '{}' is missing the following properties from type '{ channel: Ref; min: number; max: number; }': channel, min, max 75 blackWhiteClamp = {}, ~~~~~~~~~~~~~~~ src/Type.js:124:25 - error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter. 124 return new this(type, ...args); ~~~~~~~ Found 83 errors in 10 files. Errors Files 1 src/interpolation.js:27 4 src/parse.js:49 31 src/serialize.js:35 1 src/space-accessors.js:60 35 src/spaces/cam16.js:172 3 src/spaces/hct.js:68 5 src/spaces/lch.js:28 1 src/spaces/srgb.js:78 1 src/toGamut.js:75 1 src/Type.js:124 > colorjs.io@0.5.0 build:js:legacy > rollup -c _build/rollup.legacy.config.js src/index.js → dist/color.global.legacy.js, dist/color.global.legacy.min.js, dist/color.legacy.js, dist/color.legacy.min.js, dist/color.legacy.cjs, dist/color.legacy.min.cjs... created dist/color.global.legacy.js, dist/color.global.legacy.min.js, dist/color.legacy.js, dist/color.legacy.min.js, dist/color.legacy.cjs, dist/color.legacy.min.cjs in 6.6s src/index-fn.js → dist/color-fn.legacy.cjs, dist/color-fn.legacy.min.cjs... created dist/color-fn.legacy.cjs, dist/color-fn.legacy.min.cjs in 2.4s > colorjs.io@0.5.0 build:space-accessors > node ./scripts/generate-space-accessor-types.js