A TypeScript class called Atom is defined as follows:
export class Atom {
public text: String;
public image: boolean;
public equation: boolean;
}
To create an object of type Atom class and set its properties, the following steps are used:
atom: Atom = new Atom();
atom.text = "hello";
Error Message: Subsequent variable declarations must have the same type. Variable atom must be of type Atom, but it is currently of type any.