The type in the constructor has two default values active or finished. But I think there should be a parameter type such as number or string.
Any explanation about this?
class ProjectList{
templateElement: HTMLTemplateElement;
constructor(private type: 'active' | 'finished'){
}
}