Type AnnotationsConst ExpressionsOn this pageConst ExpressionsSometimes it is useful to specify that a literal expression is expected to be immutable. In such cases, you can annotate the expression with the as const modifier. We refer to these expressions as const-expressions. Typing for Const Expressions