Validate a value is a string matching one of the allowed values.

Hierarchy

  • OneOf

Implements

Constructors

Properties

Methods

Constructors

  • Parameters

    • values: readonly string[]

    Returns OneOf

Properties

_values: any

Methods

  • Returns string

  • Parameters

    • u: unknown

    Returns u is string

Generated using TypeDoc