UNPKG

@airplane/views

Version:

A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.

7 lines (6 loc) 334 B
import { InputProps } from "./types"; export declare const REQUIRED_ERROR = "This field is required"; /** * runValidate runs all the validation functions and returns an array of errors. */ export declare const runValidate: <TValue>(value: TValue | null | undefined, { validate, required }: InputProps<TValue, unknown>) => string[];