Skip to content

Commit 7542faf

Browse files
committed
wip: infer keyword
1 parent 904d7cd commit 7542faf

File tree

4 files changed

+43
-5
lines changed

4 files changed

+43
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
# 1.0.0 (2020-08-23)
1+
# 1.0.0 (2020-08-29)
22

33

44
### Bug Fixes
55

66
* add deploy folder, remove useless file with deploy.yml ([ae47a15](https://github.com/Rain120/typescript-guide/commit/ae47a15f31d84c749adeac9f4dcb8bd793860223))
7-
* deploy workflows error ([eb9efce](https://github.com/Rain120/typescript-guide/commit/eb9efcee47d42d8cfd3eae039dc904c71e73fdf1))
7+
* changelog before commit ([904d7cd](https://github.com/Rain120/typescript-guide/commit/904d7cd67335a1455aade81ae5638d0d85c16016))
8+
* deploy workflows error ([048dbe1](https://github.com/Rain120/typescript-guide/commit/048dbe1c70e0f0ecb914d8f44a14629938fac157))
89
* deploy workflows error ([6aa3dae](https://github.com/Rain120/typescript-guide/commit/6aa3dae982f03588a9b9f69b9f31dcdb67b0d14c))
910
* deploy workflows error ([eeb7ab2](https://github.com/Rain120/typescript-guide/commit/eeb7ab2d0d7487b5a43249d0f0181083178961dd))
10-
* deploy workflows error ([048dbe1](https://github.com/Rain120/typescript-guide/commit/048dbe1c70e0f0ecb914d8f44a14629938fac157))
11+
* deploy workflows error ([eb9efce](https://github.com/Rain120/typescript-guide/commit/eb9efcee47d42d8cfd3eae039dc904c71e73fdf1))
1112
* Invalid workflow filed with deploy yml ([6c0d64a](https://github.com/Rain120/typescript-guide/commit/6c0d64a7dacbb38c8b34adcc4d74fbd56bb1e99c))
1213
* monaco editor build bug (cannot require async component) ([906f6e8](https://github.com/Rain120/typescript-guide/commit/906f6e8379efe762d76f16381b657e4752be4dd4))
1314
* monaco editor show normal modal and can edit ([da7a4c9](https://github.com/Rain120/typescript-guide/commit/da7a4c9316b6bf245ceccea93f3518ddaf810f80))

commitlint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ module.exports = {
1616
"ci",
1717
"chore",
1818
"revert",
19-
"config"
19+
"config",
20+
"wip"
2021
]
2122
],
2223
"subject-full-stop": [0, "never"],

docs/.vuepress/utils/alias.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"utility-types": "Typescript 使用工具类型",
2727
"extends": "extends",
2828
"implements": "implements",
29+
"infer": "infer",
2930
"tips": "Typescript Tips",
3031
"faqs": "Typescript FAQs"
31-
}
32+
}

docs/zh/keyword/infer/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## 定义
2+
3+
`infer` 最早出现在此 [PR](https://github.com/Microsoft/TypeScript/pull/21496) 中,表示在 `extends` 条件语句中待推断的类型变量。
4+
5+
## 使用
6+
7+
## 快来耍耍啊
8+
9+
### 🌰🌰
10+
11+
<!-- 题目 -->
12+
13+
```
14+
// template
15+
```
16+
17+
### 游乐场
18+
19+
<br />
20+
21+
<Editor
22+
value='// enjoy yourself'
23+
/>
24+
25+
### 参考答案
26+
27+
```ts
28+
// answer
29+
```
30+
31+
## 参考资料
32+
33+
[infer PR: Type inference in conditional types](https://github.com/Microsoft/TypeScript/pull/21496)
34+
35+
[typescript-2-8](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html)

0 commit comments

Comments
 (0)