主页
TypeScript
TypeScript 特殊类型
demo_special_types_with_any
运行 ❯
×
更改方向
保存代码
更改主题
let v: any = true; v = "string"; // no error as it can be "any" type // v.runANonExistentMethod(); // no type error in the editor, but will still throw an error if commented in console.log(Math.round(v)); // no error as it can be "any" type
NaN