Skip to content

AIDC Toolkit / Utility / StringValidator

Interface: StringValidator<V>

Defined in: string.ts:14

String validator interface.

Extended by

Type Parameters

V

V extends StringValidation = StringValidation

String validation type.

Properties

validate()

validate: (s, validation?) => void

Defined in: string.ts:24

Validate a string and throw an error if validation fails.

Parameters

s

string

String.

validation?

V

String validation parameters.

Returns

void