Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ascoders committed Jul 12, 2022
1 parent 283143e commit ca4b4d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,15 +429,15 @@ interface Todo {
type MutableTodo = Mutable<Todo> // { title: string; description: string; completed: boolean; }
```
把对象从不可写变成可写
把对象从可写变成不可写
```ts
type Readonly<T> = {
readonly [K in keyof T]: T[K]
}
```
从可写改成不可写也简单,主要看你是否记住了这个语法:`-readonly`
从不可写改成可写也简单,主要看你是否记住了这个语法:`-readonly`
```ts
// 本题答案
Expand Down

0 comments on commit ca4b4d1

Please sign in to comment.