mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Type definitions for array.prototype.flatmap * array.prototype.flatmap: importing "/auto" extends the Array prototype
7 lines
177 B
TypeScript
7 lines
177 B
TypeScript
interface Array<T> {
|
|
flatMap<U, R extends object | undefined = undefined>(
|
|
fn: (this: R, x: T, index: number, array: this) => U[],
|
|
thisArg?: R
|
|
): U[];
|
|
}
|