view web/lib/onecolor.d.ts @ 2395:ef3cde3e81e8

switch collector output from json to avro (still over WS)
author drewp@bigasterisk.com
date Thu, 16 May 2024 15:03:50 -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;