Skip to content

Commit

Permalink
Fix incorrect examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonghwanWon committed Oct 22, 2022
1 parent c5e4dbc commit f19002f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ type Str = First<['hello', 1, false]>; // 'hello'
```ts
const point = { x: 4, y: 2 }; // { x: number, y: number }

const literalPoint = point as const; // { x: 4, y: 2 };
const literalPoint = { x: 4, y: 2 } as const; // { readonly x: 4, readonly y: 2 };
```

## Template Literal Types
Expand Down

0 comments on commit f19002f

Please sign in to comment.