Skip to content

Commit 722eb75

Browse files
committed
Changed 28 solution
1 parent 00c2550 commit 722eb75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/05-function-overloads/28-could-be-instantiated-with-subtype-of.solution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const obj = {
88

99
type ObjKey = keyof typeof obj;
1010

11-
function getObjValue(): 1;
11+
function getObjValue(): typeof obj["a"];
1212
function getObjValue<TKey extends ObjKey>(key: TKey): typeof obj[TKey];
1313
function getObjValue(key: ObjKey = "a") {
1414
return obj[key];

0 commit comments

Comments
 (0)