From ac4a5f74b8e56a360e0a0543a6fc45099e13b95a Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 26 Mar 2024 18:52:57 -0400 Subject: feat: TypeScript 5.4 (#23086) Fork PR: https://github.com/denoland/TypeScript/pull/10 Closes #23080 --- cli/tsc/dts/lib.esnext.object.d.ts | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'cli/tsc/dts/lib.esnext.object.d.ts') diff --git a/cli/tsc/dts/lib.esnext.object.d.ts b/cli/tsc/dts/lib.esnext.object.d.ts index 3440d8d0d..b0885ae0b 100644 --- a/cli/tsc/dts/lib.esnext.object.d.ts +++ b/cli/tsc/dts/lib.esnext.object.d.ts @@ -13,20 +13,17 @@ See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ + /// -// NOTE(iuioiua): taken from https://github.com/microsoft/TypeScript/issues/47171#issuecomment-1697373352 -// while we wait for these types to officially ship interface ObjectConstructor { - groupBy( - items: Iterable, - keySelector: (item: Item, index: number) => Key, - ): Partial>; -} - -interface MapConstructor { - groupBy( - items: Iterable, - keySelector: (item: Item, index: number) => Key, - ): Map; + /** + * Groups members of an iterable according to the return value of the passed callback. + * @param items An iterable. + * @param keySelector A callback which will be invoked for each item in items. + */ + groupBy( + items: Iterable, + keySelector: (item: T, index: number) => K, + ): Partial>; } -- cgit v1.2.3