Open Cap Table Protocol Canton SDK - v0.2.224
    Preparing search index...

    Function validateEnum

    • Validate that a value is one of the allowed enum values.

      Type Parameters

      • T extends string

      Parameters

      • value: unknown

        The value to validate

      • fieldPath: string

        Dot-notation path for error messages

      • allowedValues: readonly T[]

        Array of allowed values

      Returns asserts value is T

      if the value is not in the allowed list