I am learning typescript and I noticed that the compiled javascript has a comment for every class that looks like this: /** @class */
Example:
var Student = /** @class */ (function () {
function Student(firstName, middleInitial, lastName) {
this.firstName = firstName;
this.middleInitial = middleInitial;
this.lastName = lastName;
this.fullName = firstName + " " + middleInitial + " " + lastName;
}
return Student;
}());
My question is does this comment have any functional value or is it just syntactical sugar? Also, If it does have a function, what is the function?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With