Files

38 lines
759 B
Diff

--- old.templateInsideCallback.js
+++ new.templateInsideCallback.js
@@= skipped -112, +112 lines =@@
//// [templateInsideCallback.d.ts]
-/**
- * @overload
- * @template T
- * @template U
- * @param {T[]} array
- * @param {(x: T) => U[]} iterable
- * @returns {U[]}
- */
-declare function flatMap<U>(): any;
-/**
- * @overload
- * @template T
- * @param {T[][]} array
- * @returns {T[]}
- */
-declare function flatMap(): any;
+type Oops = {
+ a: T;
+ b: T;
+};
+type Call = (x: T) => T;
/**
* @typedef Oops
* @template T
@@= skipped -39, +28 lines =@@
noooooo: string;
};
};
-type Oops = any;
-type Call = () => any;
+declare function flatMap(array: T[], iterable: (x: T) => U[]): U[];
+declare function flatMap(array: T[][]): T[];