@types/object.fromentries
Advanced tools
Comparing version 2.0.0 to 2.0.1
// 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). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4507
0
46