Typescript <;的字符是什么意思打字稿?
问题:Typescript <;的字符是什么意思打字稿?,typescript,Typescript,问题: 字符在处的含义是什么这不是TypeScript。它的意思似乎是“是的一个子类型” 例如,interface Literal如果S是T的子类型,子类型关系通常写为S This is not TypeScript. It looks to mean "is a subtype of". For example, interface Literal <: Expression means that a Literal is a t
- 字符在处的含义是什么这不是TypeScript。它的意思似乎是“是的一个子类型”
例如,
interface Literal如果S是T的子类型,子类型关系通常写为S
This is not TypeScript. It looks to mean "is a subtype of". For example,
means that ainterface Literal <: Expression
is a type ofLiteral
. Similarly,Expression
means that aninterface Expression <: Node
is a type ofExpression
. (In the abstract syntax tree, every element in the tree is some type of Node) When there are multiple identifiers on the right, eg:Node
interface FunctionExpression <: Function, Expression