import {Options} from '.' export function validateOptions({maxItems}: Partial): void { if (maxItems !== undefined && maxItems < -1) { throw RangeError(`Expected options.maxItems to be >= -1, but was given ${maxItems}.`) } }