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

Skip to content

Commit 99b4204

Browse files
docs(introduction): optimize markdown (xcatliu#186)
1 parent c17c15b commit 99b4204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

introduction/hello-typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ console.log(sayHello(user));
3333

3434
上述例子中,我们用 `:` 指定 `person` 参数类型为 `string`。但是编译为 js 之后,并没有什么检查的代码被插入进来。
3535

36-
这是因为 **TypeScript 只会在编译时对类型进行静态检查,如果发现有错误,编译的时候就会报错。**而在运行时,与普通的 JavaScript 文件一样,不会对类型进行检查。
36+
这是因为 **TypeScript 只会在编译时对类型进行静态检查,如果发现有错误,编译的时候就会报错**。而在运行时,与普通的 JavaScript 文件一样,不会对类型进行检查。
3737

3838
如果我们需要保证运行时的参数类型,还是得手动对类型进行判断:
3939

0 commit comments

Comments
 (0)