W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
type Primitive = string | number | boolean; const value: Exclude
= true; // 由于 `Exclude` 从类型中移除了 `string`,所以这里不能使用字符串。 console.log(typeof value);