omgovich / colord

👑 A tiny yet powerful tool for high-performance color manipulations and conversions
https://colord.omgovich.ru
MIT License
1.67k stars 50 forks source link

Property 'isReadable' does not exist on type 'Colord' #125

Open Jacktoolsnet opened 5 months ago

Jacktoolsnet commented 5 months ago

Installed the latest Version and got this error:

Property 'isReadable' does not exist on type 'Colord'

callum-ds commented 3 months ago

@Jacktoolsnet hey i also came across the issue, but its an easy fix. Just need to include the a11y plugin for the isReadable() method to work:

import a11yPlugin from "colord/plugins/a11y";

extend([a11yPlugin]);

The documentation could definitely be improved to make this more clear though.

Jacktoolsnet commented 3 months ago

@callum-ds thank you very much.