Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c17c15b commit 99b4204Copy full SHA for 99b4204
introduction/hello-typescript.md
@@ -33,7 +33,7 @@ console.log(sayHello(user));
33
34
上述例子中,我们用 `:` 指定 `person` 参数类型为 `string`。但是编译为 js 之后,并没有什么检查的代码被插入进来。
35
36
-这是因为 **TypeScript 只会在编译时对类型进行静态检查,如果发现有错误,编译的时候就会报错。**而在运行时,与普通的 JavaScript 文件一样,不会对类型进行检查。
+这是因为 **TypeScript 只会在编译时对类型进行静态检查,如果发现有错误,编译的时候就会报错**。而在运行时,与普通的 JavaScript 文件一样,不会对类型进行检查。
37
38
如果我们需要保证运行时的参数类型,还是得手动对类型进行判断:
39
0 commit comments