Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update Object.fromEntries types
Added an optional generic type with PropertyKey as the default type for the object argument in Object.fromEntries. This makes the typing of this function “end-to-end”. For example, if [ “value1” | “value2”, string ][] is passed as an argument, the output value will be { [Key in “value1” | “value2”]: string }
- Loading branch information