Socket
Socket
Sign inDemoInstall

@types/array.prototype.flatmap

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/array.prototype.flatmap - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

9

array.prototype.flatmap/auto.d.ts
interface Array<T> {
flatMap<U, R extends object | undefined = undefined>(
fn: (this: R, x: T, index: number, array: this) => U[],
fn: (this: R, x: T, index: number, array: this) => ReadonlyArray<U>,
thisArg?: R
): U[];
}
interface ReadonlyArray<T> {
flatMap<U, R extends object | undefined = undefined>(
fn: (this: R, x: T, index: number, array: this) => ReadonlyArray<U>,
thisArg?: R
): U[];
}

2

array.prototype.flatmap/implementation.d.ts
// This is the same type as the callable signature in `FlatMap` in `index.d.ts`.
declare function flatMap<A, B, T extends object | undefined = undefined>(
xs: ReadonlyArray<A>,
fn: (this: T, x: A, index: number, array: A[]) => B[],
fn: (this: T, x: A, index: number, array: A[]) => ReadonlyArray<B>,
thisArg?: T
): B[];
export = flatMap;

@@ -13,3 +13,3 @@ // Type definitions for array.prototype.flatmap 1.2

xs: ReadonlyArray<A>,
fn: (this: T, x: A, index: number, array: A[]) => B[],
fn: (this: T, x: A, index: number, array: A[]) => ReadonlyArray<B>,
thisArg?: T

@@ -16,0 +16,0 @@ ): B[];

{
"name": "@types/array.prototype.flatmap",
"version": "1.2.1",
"version": "1.2.2",
"description": "TypeScript definitions for array.prototype.flatmap",

@@ -27,4 +27,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "3fc7e91d0fc699f1834969692f320685e6a3b8118281e9a19433c2c9e2f19774",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "932ec47c917dd38e76b1eb11c0854d59076b6c2cf5f7273c70f0659fd33f63dd",
"typeScriptVersion": "3.0"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 07 Feb 2020 18:24:03 GMT
* Last updated: Wed, 29 Jul 2020 06:30:43 GMT
* Dependencies: none

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

# Credits
These definitions were written by Jesse Hallett (https://github.com/hallettj), and Jordan Harband (https://github.com/ljharb).
These definitions were written by [Jesse Hallett](https://github.com/hallettj), and [Jordan Harband](https://github.com/ljharb).

Sorry, the diff of this file is not supported yet

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