UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

9 lines (8 loc) 397 B
/*! * KoliBri - The accessible HTML-Standard */ import { watchValidator } from "../utils"; export const validateErrorList = (component, value) => { watchValidator(component, 'errorList', (value) => Array.isArray(value) && value.find((v) => !(typeof v === 'string' || typeof v === 'function')) === undefined, new Set(['string', 'function']), value); }; //# sourceMappingURL=error-list.js.map