Skip to content

charton API


charton API / @chart-on/core / index / checkOptions

Function: checkOptions() ​

checkOptions(where, value, rule): void

Defined in: packages/core/src/util/options-check.ts:73

Warn about unknown keys, wrong types, out-of-range numbers and unreadable colours in value, in development builds only. Each problem is logged once per where (the call that took the options, e.g. 'applyOptions') and key.

Parameters ​

where ​

string

value ​

unknown

rule ​

OptionRule

Returns ​

void