Skip to content

Commit

Permalink
fix(58.精读《Typescript2.0 - 2.9》.md): 修改类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritree committed Feb 26, 2019
1 parent 5428cfa commit 6cd3321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 58.精读《Typescript2.0 - 2.9》.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ fetch(`/api?type=${monaco.languages.types.Folder}`);
一般我们会这么描述其数据结构:

```typescript
const data: string[][] = [[1, 5.5], [2, 3.7], [3, 2.0], [4, 5.9], [5, 3.9]];
const data: number[][] = [[1, 5.5], [2, 3.7], [3, 2.0], [4, 5.9], [5, 3.9]];
```

在 TS `2.7` 版本中,我们可以更精确的描述每一项的类型与数组总长度:
Expand Down

0 comments on commit 6cd3321

Please sign in to comment.