toEnum

Function

Converts a string to an enum value

strings not in the enum will be returned as the original string

  • toEnum(value: string, enumType: ) :

Parameters

Parameter Type Default Notes
value Required string
enumType Required

Returns


Function defined in common/src/search/_internal/hubEventsHelpers/toEnumConverters.ts:6