import { type Crayon } from "https://deno.land/x/crayon@3.3.3/src/crayon.ts";
Crayon type which can be easily extended
C
- literal string type for extending styles
O
- object which expands
definition:
& ((single: unknown, ...many: unknown[]) => string)
& prototype
& { styleBuffer: string; usesFunc: boolean; reprepareCache?(): void; keyword(style: Style): Crayon<C, O>; keyword(style: string): Crayon<C, O>; ansi3(code: number): Crayon<C, O>; bgAnsi3(code: number): Crayon<C, O>; ansi4(code: number): Crayon<C, O>; bgAnsi4(code: number): Crayon<C, O>; ansi8(code: number): Crayon<C, O>; bgAnsi8(code: number): Crayon<C, O>; rgb(): Crayon<C, O>; bgRgb(): Crayon<C, O>; hsl(): Crayon<C, O>; bgHsl(): Crayon<C, O>; hex(hex: string | number): Crayon<C, O>; bgHex(hex: string | number): Crayon<C, O>; }
r: number,
g: number,
b: number,
r: number,
g: number,
b: number,
h: number,
s: number,
l: number,
h: number,
s: number,
l: number,
& O