UNPKG

@edgeguideab/expect

Version:

Check for user input in a consistent way and generate error messages for missings

17 lines (16 loc) 737 B
import { getDeep, getDeepOptions } from "./getDeep"; import { isEqualTo } from "./isEqualTo"; import { parseFunctionWrapper, parseType } from "./parse"; export { formatParameter, isEqualTo, getDeep, getDeepOptions, parseType, parseFunctionWrapper, isNull, sanitize, containsUnsafe, }; declare function formatParameter(parameter: string | number | Array<string | number>): string | number; declare function containsUnsafe({ value, strict, allowed, }: { value: string; strict?: boolean; allowed?: string[]; }): boolean; declare function sanitize({ value, strict, allowed, }: { value: string; strict?: boolean; allowed?: string[]; }): string; declare function isNull(value: unknown): value is undefined | null | "";