questions/02949-hard-objectfromentries/README.md
Implement the type version of Object.fromEntries
For example:
interface Model {
name: string;
age: number;
locations: string[] | null;
}
type ModelEntries = ['name', string] | ['age', number] | ['locations', string[] | null];
type result = ObjectFromEntries<ModelEntries> // expected to be Model
<a href="../../README.md" target="_blank"></a> <a href="https://tsch.js.org/2949/answer" target="_blank"></a> <a href="https://tsch.js.org/2949/solutions" target="_blank"></a> <hr><h3>Related Challenges</h3><a href="https://github.com/type-challenges/type-challenges/blob/main/questions/00055-hard-union-to-intersection/README.md" target="_blank"></a> <!--info-footer-end-->