Skip to content

Commit 854a20f

Browse files
committed
Update Record<K, T> type
1 parent 76ceab9 commit 854a20f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/es5.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ type Pick<T, K extends keyof T> = {
13671367
/**
13681368
* Construct a type with a set of properties K of type T
13691369
*/
1370-
type Record<K extends string | number, T> = {
1370+
type Record<K extends string, T> = {
13711371
[P in K]: T;
13721372
}
13731373

0 commit comments

Comments
 (0)