Skip to content

Commit bea3d8d

Browse files
committed
Fixed issue with 23
1 parent 7f3fab0 commit bea3d8d

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

src/04-conditional-types-and-infer/23-infer-with-raw-values.problem.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ type tests = [
1111
{ name: "hello"; age: 20 }
1212
>
1313
>,
14+
// Expect that if you pass in string, it
15+
// should return never
16+
Expect<Equal<GetDataValue<string>, never>>,
1417
];

src/04-conditional-types-and-infer/23-infer-with-raw-values.solution.1.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ type tests = [
1010
GetDataValue<{ data: { name: "hello"; age: 20 } }>,
1111
{ name: "hello"; age: 20 }
1212
>
13-
>
13+
>,
14+
// Expect that if you pass in string, it
15+
// should return never
16+
Expect<Equal<GetDataValue<string>, never>>,
1417
];

src/04-conditional-types-and-infer/23-infer-with-raw-values.solution.2.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ type tests = [
1212
GetDataValue<{ data: { name: "hello"; age: 20 } }>,
1313
{ name: "hello"; age: 20 }
1414
>
15-
>
15+
>,
16+
// Expect that if you pass in string, it
17+
// should return never
18+
Expect<Equal<GetDataValue<string>, never>>,
1619
];

0 commit comments

Comments
 (0)