提交 3a930050 编写于 作者: W weixin_42146585

Sat Dec 23 16:50:00 CST 2023 inscode

上级 c95d070f
......@@ -24,3 +24,8 @@ let names: Array<string> = ["Alice", "Bob", "Charlie"];
// 元组类型注释
let tuple: [string, number] = ["Alice", 30];
// 布尔值(Boolean)
let isDone: string ;
console.log(isDone);
......@@ -25,7 +25,7 @@
/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* Enable strict null checks. */
"strictNullChecks": false, /* Enable strict null checks. */
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册