@google-github-actions/actions-utils
@google-github-actions/actions-utils / enum / toEnum
toEnum<
E>(e,s):E[keyofE]
Defined in: enum.ts:25
toEnum converts the input value to the best enum value. If no enum value exists, it throws an error.
E extends Record<string, string>
E
Enum to check against.
string
String to enumerize.
E[keyof E]
string