view web/lib/onecolor.d.ts @ 2393:e61eb9bb36d3

fiix pytest; stop using ./lib
author drewp@bigasterisk.com
date Tue, 14 May 2024 14:41:15 -0700
parents 4556eebe5d73
children
line wrap: on
line source

type ColorFormat = "hex" | "rgb" | "hsl" | "hsv";
interface Color {
  clone(): this;
  toString(format?: ColorFormat): string;
  toJSON(): string;
  value(): number;
  value(v: number): this;
  hex(): string;
}

declare function color(value: any): Color;

export = color;