New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

immutable-parsejs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

immutable-parsejs - npm Package Compare versions

Comparing version

to
1.4.8

2

dist/index.d.ts
import { Record, List } from 'immutable';
declare function parseJs<T extends object[]>(data: T): List<Record<T>>;
declare function parseJs<T extends object>(data: T[]): List<Record<T>>;
declare function parseJs<T extends object>(data: T): Record<T> & Readonly<T>;
export { parseJs };
{
"name": "immutable-parsejs",
"version": "1.4.7",
"version": "1.4.8",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts",

@@ -37,4 +37,7 @@ # immutable-parsejs

const result = parseJs(dataSet); // <-- List<Record>;
const firstUser = result.get(0);
/*[...]*/
console.log(firstUser.get('firstName')); // <-- John
```

@@ -41,0 +44,0 @@