2.0.4 • Published 6 months ago
@types/object.fromentries v2.0.4
Installation
npm install --save @types/object.fromentries
Summary
This package contains type definitions for object.fromentries (https://github.com/es-shims/Object.fromEntries#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/object.fromentries.
index.d.ts
// Type definitions for object.fromentries 2.0
// Project: https://github.com/es-shims/Object.fromEntries#readme
// Definitions by: Andres Riofrio <https://github.com/ariofrio>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.4
// Adapted from node_modules/typescript/lib/lib.es2019.object.d.ts
/**
* Returns an object created by key-value entries for properties and methods
* @param entries An iterable object that contains key-value entries for properties and methods.
*/
declare function fromEntries<T = any>(
entries: Iterable<readonly [PropertyKey, T]>
): {
[k in PropertyKey]: T;
};
/**
* Returns an object created by key-value entries for properties and methods
* @param entries An iterable object that contains key-value entries for properties and methods.
*/
declare function fromEntries(entries: Iterable<readonly any[]>): any;
export = fromEntries;
Additional Details
- Last updated: Thu, 08 Jul 2021 22:41:08 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Andres Riofrio.