Skip to content

Commit fa4d8d2

Browse files
author
Orta Therox
authored
Merge pull request microsoft#2030 from mymactive/docs/update-KeyofTypeOperator
DOCS: Add a comment to the first example of Keyof Type Operator for beginners
2 parents 8163e66 + 8002736 commit fa4d8d2

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)