Home > @websublime/schema > StringSchemaType > isOneOf
StringSchemaType.isOneOf() method
Test if is one of other types included
Signature:
isOneOf(values: string[], errorMessage?: string): this;
Parameters
| Parameter | Type | Description |
|---|---|---|
| values | string[] | Values to test |
| errorMessage | string | Error message |
Returns:
this