- key<V, T>(enumObj, value): EnumKey<T> | undefined
Parameters
- enumObj: T
- value: undefined | null | NoInfer<V>
Returns EnumKey<T> | undefined
- key<V, T>(enumObj): ((value: V | null | undefined) => EnumKey<T> | undefined)
Returns ((value: V | null | undefined) => EnumKey<T> | undefined)
- (value): EnumKey<T> | undefined
Parameters
- value: V | null | undefined
Returns EnumKey<T> | undefined