@types/array.prototype.flatmap
Advanced tools
Comparing version 1.2.5 to 1.2.6
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 @@ |
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
4036