ts-class
What it means#
A class of a module (the program extension) that is not the class of its body file (class Name … { … } in code "x.body.ts"): abstract on one and not the other, another extends or implements, a member of another kind (a field, a method, a getter, the constructor) or with other words (private, protected, readonly, abstract, ?), a field the model gives a type that has none written in the body's class (made: number = 0; an arrow field, the types of its parameters and result), a member of the body's class the model does not declare and that is not private, or a value or a ```ts body in the model when the body's class has the member too. The model owns the class's shape: write the member as the message gives it, or declare it.
How to fix it#
The message says what is wrong and where, and often what was meant (Did you mean …?). Change the model so that what this page describes no longer holds, then check again: archec check main.arche.
An error: archec builds nothing until it is fixed.
archec check --beginner says the most common messages in plain words, with the names that exist.
The automatic fix#
archec has no fix of its own for this code. When the message says Did you mean …?, VS Code offers that change (Quick Fix).
In the terminal#
archec explain ts-class prints this explanation; archec explain program lists the codes of its area.