Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | 100x 100x 2x 2x 2x 100x | import { THEME_APPEARANCES, THEME_COLORS } from "./constants";
export function validateAndLogError({
options, value, type
}) {
let isError = !options.includes(value);
if (isError) {
const themeAppearances= THEME_APPEARANCES.toString();
const themeColors= THEME_COLORS.toString();
console.error(`We do not support the '${value} ${type}'. Please provide valid '${type}' values or check spelling. DotProvider supports ${themeAppearances} appearance & ${themeColors} theme.`);
}
return isError;
} |