UNPKG

detect-shells

Version:

Detect shells installed on a system

6 lines (5 loc) 267 B
/** * Parse a string into the given (string) enum type. Returns undefined if the * enum type provided did not match any of the keys in the enum. */ export declare function parseEnumValue<T extends string>(enumObj: Record<string, T>, value: string): T | undefined;