maximousblk / chart

Console ASCII line charts with no dependencies
https://deno.land/x/chart
MIT License
65 stars 2 forks source link

Improvement: Type safety for colors #2

Closed NfNitLoop closed 1 year ago

NfNitLoop commented 1 year ago

I tried specifying some colors and got odd "undefined" strings in the output because I'd specified one that doesn't exist in your list.

It would be nice if the colors parameter took a type-safe array that only allows valid values.

maximousblk commented 1 year ago

released in https://github.com/maximousblk/chart/releases/tag/1.1