Skip to content

Commit d501664

Browse files
committed
Fixed 30.5
1 parent d399a42 commit d501664

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/06-identity-functions/30.5-reverse-mapped-types.problem.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ export function makeEventHandlers(obj: unknown) {
66

77
const obj = makeEventHandlers({
88
click: (name) => {
9-
// ^?
109
console.log(name);
1110

1211
type test = Expect<Equal<typeof name, "click">>;
1312
},
1413
focus: (name) => {
15-
// ^?
1614
console.log(name);
1715

1816
type test = Expect<Equal<typeof name, "focus">>;

src/06-identity-functions/30.5-reverse-mapped-types.solution.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ export function makeEventHandlers<T>(obj: {
88

99
const obj = makeEventHandlers({
1010
click: (name) => {
11-
// ^?
1211
console.log(name);
1312

1413
type test = Expect<Equal<typeof name, "click">>;
1514
},
1615
focus: (name) => {
17-
// ^?
1816
console.log(name);
1917

2018
type test = Expect<Equal<typeof name, "focus">>;

0 commit comments

Comments
 (0)