can you use attribute class definitions annotations typescript interface method signature code example
Example 1: classes in typescript
class Info {
private name: string ;
constructor(n:string){
this.name = n ;
};
describe(){
console.log(`Your name is ${this.name}`);
}
}
const a = new Info('joyous');
a.describe();
Example 2: interface ts one valu
// use type instead interface
type StringOrNull = string | null;