Skip to main content
Module

x/value_schema/src/schemas/string.ts

simple, easy-to-use, and declarative input validator; supports Node.js, TypeScript, and Deno
Go to Latest
File
import {NullableOptions} from "../libs/publicTypes";import {OptionsForString, StringSchema} from "../schemaClasses/StringSchema";
export {STRING} from "../schemaClasses/StringSchema";
export function string(options: OptionsForString & NullableOptions): StringSchema<null>export function string(options: OptionsForString): StringSchemaexport function string(): StringSchema
/** * create schema * @param options Options * @returns schema */export function string(options: OptionsForString = {}): StringSchema{ return new StringSchema(options);}