@yobta/validator
Version:
Tree-shakable es6 validator
6 lines • 381 B
TypeScript
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