Skip to content

Commit 8002736

Browse files
committed
docs: Add a comment to the first example of Keyof Type Operator for beginners
1 parent 449e450 commit 8002736

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/documentation/copy/en/handbook-v2/Type Manipulation/Keyof Type Operator.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ oneline: "Using the keyof operator in type contexts."
77

88
## The `keyof` type operator
99

10-
The `keyof` operator takes an object type and produces a string or numeric literal union of its keys:
10+
The `keyof` operator takes an object type and produces a string or numeric literal union of its keys.
11+
The following type P is the same type as "x" | "y":
1112

1213
```ts twoslash
1314
type Point = { x: number; y: number };

0 commit comments

Comments
 (0)