@yobta/validator
Version:
Tree-shakable es6 validator
5 lines • 325 B
TypeScript
import type { YobtaMaybe } from '../_types/YobtaMaybe.js';
import type { YobtaSyncRule } from '../rule/rule.js';
export declare const slugMessage = "It should be a slug";
export declare const slug: <I extends string | undefined>(message?: string) => YobtaSyncRule<I, YobtaMaybe<I, string>>;
//# sourceMappingURL=slug.d.ts.map