Repository URL to install this package:
Version:
0.9.6 ▾
|
import { Primitive } from 'chain-able/typings';
declare type ValidationTypes = 'length' | 'email' | 'length,email' | string | Array<string | Function>;
/**
* @todo multipliers, may need length on any values,
* so type should be an array always
*
* @todo ^ might want to have settings for these, so would be an array of strings or objects...
*/
declare function isValid(value: Primitive, types?: ValidationTypes): boolean;
export { isValid };
export default isValid;