Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd045f2

Browse files
committed
add lint-md & fix exist errors
1 parent 583c8d8 commit cd045f2

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
node_js:
3+
- "10"
4+
before_install:
5+
- npm i -g lint-md
6+
script: lint-md ./

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- [在线阅读(GitHub 版)](https://github.com/xcatliu/typescript-tutorial/blob/master/README.md)
99
- [GitHub 地址][GitHub]
1010
- 作者:[xcatliu](https://github.com/xcatliu/)
11-
- 官方 QQ 群:[加入QQ群 767142358](https://jq.qq.com/?_wv=1027&k=5nkkFCl)
11+
- 官方 QQ 群:[加入 QQ 群 767142358](https://jq.qq.com/?_wv=1027&k=5nkkFCl)
1212

1313
本书是作者在学习 [TypeScript] 后整理的学习笔记。
1414

advanced/enum.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ var Days;
8484

8585
所以使用的时候需要注意,最好不要出现这种覆盖的情况。
8686

87-
手动赋值的枚举项可以不是数字,此时需要使用类型断言来让tsc无视类型检查 (编译出的js仍然是可用的):
87+
手动赋值的枚举项可以不是数字,此时需要使用类型断言来让 tsc 无视类型检查 (编译出的 js 仍然是可用的):
8888

8989
```ts
9090
enum Days {Sun = 7, Mon, Tue, Wed, Thu, Fri, Sat = <any>"S"};
@@ -145,7 +145,7 @@ enum Color {Red = "red".length, Green, Blue};
145145
- 引用之前定义的常数枚举成员(可以是在不同的枚举类型中定义的)如果这个成员是在同一个枚举类型中定义的,可以使用非限定名来引用
146146
- 带括号的常数枚举表达式
147147
- `+`, `-`, `~` 一元运算符应用于常数枚举表达式
148-
- `+`, `-`, `*`, `/`, `%`, `<<`, `>>`, `>>>`, `&`, `|`, `^` 二元运算符,常数枚举表达式做为其一个操作对象。若常数枚举表达式求值后为NaN或Infinity,则会在编译阶段报错
148+
- `+`, `-`, `*`, `/`, `%`, `<<`, `>>`, `>>>`, `&`, `|`, `^` 二元运算符,常数枚举表达式做为其一个操作对象。若常数枚举表达式求值后为 NaN 或 Infinity,则会在编译阶段报错
149149

150150
所有其它情况的枚举成员被当作是需要计算得出的值。
151151

0 commit comments

Comments
 (0)