We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7412bfd commit 5e9803fCopy full SHA for 5e9803f
chapters/2-intermediate-concepts/5-variable-types-typeof/README.md
@@ -5,7 +5,7 @@ You can extract the type of a variable using `typeof`.
5
```ts
6
const x = 10;
7
8
-type X = typeof x; // number
+type X = typeof x; // 10
9
```
10
11
It isn't very useful on its own, but it can be combined with other operators to express more patterns.
0 commit comments