• Converts a string to an enum value. *


    The corresponding enum value, or undefined if no match is found.

    Type Parameters

    • T extends string

      The string literal type of the enum values.

    • E extends {
          [key: string]: T;

      The type of the enum object.


    • str: string

      The string to convert.

    • enumType: E

      The enum type.

    Returns E[keyof E] | undefined

Generated using TypeDoc