@chromia/ft4 - v2.1.0
    Preparing search index...

    Function enumValueFromString

    • Creates an enum instance from a string value. Throws an error if the provided enum does not have a value that matches the string.

      Type Parameters

      Parameters

      • str: string

        the string value

      • enumType: T

        the enum type in which the string is a value

      Returns T[keyof T]