@types/array.prototype.flatmap
Advanced tools
Comparing version 1.2.1 to 1.2.2
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[]; | ||
} |
// 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
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
4311
44