UNPKG

@yobta/validator

Version:
6 lines 381 B
import type { YobtaMaybe } from '../_types/YobtaMaybe.js'; import type { YobtaSyncRule } from '../rule/rule.js'; export type OneOfMessage<T> = (items: Set<T>) => string; export declare const oneOfMessage: OneOfMessage<unknown>; export declare const oneOf: <I, T>(items: Set<T>, message?: OneOfMessage<T>) => YobtaSyncRule<any, YobtaMaybe<I, T>>; //# sourceMappingURL=oneOf.d.ts.map