Skip to content

Commit 5e9803f

Browse files
committed
fix mistakes in typeof README
1 parent 7412bfd commit 5e9803f

File tree

1 file changed

+1
-1
lines changed
  • chapters/2-intermediate-concepts/5-variable-types-typeof

1 file changed

+1
-1
lines changed

chapters/2-intermediate-concepts/5-variable-types-typeof/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ You can extract the type of a variable using `typeof`.
55
```ts
66
const x = 10;
77

8-
type X = typeof x; // number
8+
type X = typeof x; // 10
99
```
1010

1111
It isn't very useful on its own, but it can be combined with other operators to express more patterns.

0 commit comments

Comments
 (0)