UNPKG

container.ts

Version:
8 lines (7 loc) 242 B
import { Field } from "../field"; /** Wrapper for validator isJSON. */ export declare function isJson<T>(value?: string): T; export declare class JsonField<T> extends Field<T> { validate(value: string): T; format(value: T): string; }