Home > @websublime/schema > StringSchemaType > isOneOf

StringSchemaType.isOneOf() method

Test if is one of other types included

Signature:

isOneOf(values: string[], errorMessage?: string): this;

Parameters

ParameterTypeDescription
valuesstring[]Values to test
errorMessagestringError message

Returns:

this