@yobta/validator
Version:
Tree-shakable es6 validator
6 lines • 462 B
TypeScript
import type { YobtaMaybe } from '../_types/YobtaMaybe.js';
import type { YobtaOptionaUnknownArray } from '../_types/YobtaOptionaUnknownArray.js';
import type { YobtaSyncRule } from '../rule/rule.js';
export declare const maxItemsMessage: (limit: number) => string;
export declare const maxItems: <I extends YobtaOptionaUnknownArray>(limit: number, message?: (limit: number) => string) => YobtaSyncRule<I, YobtaMaybe<I, I>>;
//# sourceMappingURL=maxItems.d.ts.map