Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/object.fromentries

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/object.fromentries - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

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/DefinitelyTyped>
// Definitions by: Andres Riofrio <https://github.com/ariofrio>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -5,0 +5,0 @@ // Minimum TypeScript Version: 3.4

{
"name": "@types/object.fromentries",
"version": "2.0.0",
"version": "2.0.1",
"description": "TypeScript definitions for object.fromentries",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/object.fromentries",
"license": "MIT",

@@ -9,4 +10,4 @@ "contributors": [

"name": "Andres Riofrio",
"url": "https://github.com/DefinitelyTyped",
"githubUsername": "DefinitelyTyped"
"url": "https://github.com/ariofrio",
"githubUsername": "ariofrio"
}

@@ -23,4 +24,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "57edac0e310432879a724086cad0b08daf8f02443b05f9707714c565334ccaf6",
"typeScriptVersion": "3.4"
"typesPublisherContentHash": "4838fdb5c722ca6001fcba8212f52118904fce7608355b86a1faa12eb6b03b98",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,34 @@ # Installation

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
// 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: Fri, 08 May 2020 17:59:14 GMT
* Last updated: Thu, 08 Jul 2021 22:41:08 GMT
* Dependencies: none

@@ -17,2 +46,2 @@ * Global values: none

# Credits
These definitions were written by [Andres Riofrio](https://github.com/DefinitelyTyped).
These definitions were written by [Andres Riofrio](https://github.com/ariofrio).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc