为什么 Typescript 规范不包含任何关于布尔值和数字文字类型的内容?

Why Typescript specification does not contain anything about boolean and number literal types?

它只包含字符串文字类型部分,而没有提及其他两种类型。

另外,为什么“3.8 指定类型”一节根本不包含有关文字类型的任何内容?

TypeScript 团队已于 2016 年停止更新语言规范。从那时起,该语言发生了巨大变化,以至于在目前的状态下,该规范几乎毫无用处。

numerous issues about this in TypeScript repo, here is the comment from the one个总结的最好:

There are about four people on the planet who can accurately update the spec and all of them are quite busy already.