UNPKG

355 BTypeScriptView Raw
1import { Type } from './type';
2/**
3 * String type
4 */
5export declare class StringType implements Type<string> {
6 readonly name = "string";
7 isInstance(value: any): boolean;
8 isCoercible(value: any): boolean;
9 defaultValue(): string;
10 coerce(value: any): string;
11 serialize(value: string | null | undefined): string | null | undefined;
12}