UNPKG

@wocker/utils

Version:
4 lines (3 loc) 266 B
import { ValidationRule } from "../types/ValidationRule"; import { ValidationValue } from "../types/ValidationValue"; export declare const normalizeRule: <T extends ValidationValue = ValidationValue>(rule?: ValidationRule<T>) => [T | undefined, string | undefined];