Skip to content

Commit 149976f

Browse files
xgqfrms-GitHubxgqfrms
authored andcommitted
映射类型
1 parent 2e4926f commit 149976f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

test/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
# typescript test
1+
// typescript test
2+
3+
// 映射类型
4+
type Record<K extends keyof any, T> = {
5+
[P in K]: T;
6+
}
27

0 commit comments

Comments
 (0)