import { StringValidator as Validator } from '~/domain'; import { falsyValues } from '../helpers'; export const getMakeRules = (key: K) => { return (value: Validator.Rules[K] | null): Validator.Rules => { if (value !== undefined && value !== null) { return { [key]: value } as any; } return {}; }; }; export const getAnyObject = () => { return [...falsyValues, { a: 2 }, {}]; }; export * from '../helpers';