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

@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.5 to 1.2.6

4

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) => ReadonlyArray<U>,
fn: (this: R, x: T, index: number, array: this) => readonly U[],
thisArg?: R,

@@ -10,5 +10,5 @@ ): U[];

flatMap<U, R extends object | undefined = undefined>(
fn: (this: R, x: T, index: number, array: this) => ReadonlyArray<U>,
fn: (this: R, x: T, index: number, array: this) => readonly U[],
thisArg?: R,
): U[];
}
// 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[]) => ReadonlyArray<B>,
xs: readonly A[],
fn: (this: T, x: A, index: number, array: A[]) => readonly B[],
thisArg?: T,
): B[];
export = flatMap;

@@ -5,4 +5,4 @@ import flatMapImpl = require("./implementation");

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

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

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

@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/array.prototype.flatmap",

"dependencies": {},
"typesPublisherContentHash": "32ca3bc5fefaff91d4cd6094eeb58279c4e0ce9d6400e209993689e496960baf",
"typesPublisherContentHash": "6809259e88afce248e2f3db78e99c98179d8a776a1f5cfda1754c96b8c8ed360",
"typeScriptVersion": "4.5"
}

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

### Additional Details
* Last updated: Mon, 06 Nov 2023 22:41:04 GMT
* Last updated: Mon, 20 Nov 2023 23:36:23 GMT
* Dependencies: none

@@ -14,0 +14,0 @@

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