From d96d21bc37c7d4eb36ac001948dbc2abbb7863fe Mon Sep 17 00:00:00 2001 From: PCOffline Date: Wed, 6 Sep 2023 12:12:11 +0300 Subject: [PATCH] fix(object-entries); make arrays return string index --- src/entrypoints/object-entries.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entrypoints/object-entries.d.ts b/src/entrypoints/object-entries.d.ts index 9ae0032..216b9da 100644 --- a/src/entrypoints/object-entries.d.ts +++ b/src/entrypoints/object-entries.d.ts @@ -1,3 +1,3 @@ interface ObjectConstructor { - entries(o: T): T extends ArrayLike ? { [K in Extract]: [K, T[K]] }[number][] : { [K in keyof T]: [K, T[K]] }[keyof T][]; + entries(o: T): T extends ArrayLike ? { [K in Extract]: [`${K}`, T[K]] }[number][] : { [K in keyof T]: [K, T[K]] }[keyof T][]; }