Skip to content

Commit

Permalink
fix(object-entries); make arrays return string index
Browse files Browse the repository at this point in the history
  • Loading branch information
PCOffline committed Sep 6, 2023
1 parent c559bfd commit d96d21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entrypoints/object-entries.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
interface ObjectConstructor {
entries<T>(o: T): T extends ArrayLike<any> ? { [K in Extract<keyof T, number>]: [K, T[K]] }[number][] : { [K in keyof T]: [K, T[K]] }[keyof T][];
entries<T>(o: T): T extends ArrayLike<any> ? { [K in Extract<keyof T, number>]: [`${K}`, T[K]] }[number][] : { [K in keyof T]: [K, T[K]] }[keyof T][];
}

0 comments on commit d96d21b

Please sign in to comment.