# @types/object.fromentries

> TypeScript definitions for object.fromentries

Latest version **2.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/object.fromentries
pnpm add @types/object.fromentries
yarn add @types/object.fromentries
bun add @types/object.fromentries
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2023-11-07 |
| First published | 2020-05-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51433 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/object.fromentries
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/object.fromentries
- npm.io page: https://npm.io/package/@types/object.fromentries

## Recent versions

- 2.0.4 (latest) — 2023-11-07
- 2.0.2 (ts4.3) — 2023-09-03
- 2.0.1 (ts3.6) — 2021-07-08
- 2.0.0 (ts3.4) — 2020-05-08
- 2.0.3 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/object.fromentries/index.d.ts)
````ts
// 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: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Andres Riofrio](https://github.com/ariofrio).

---
_Source: https://npm.io/package/@types/object.fromentries · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
