Is it possible to have the name set by its default value with this code?
interface ProjectInterface {
id: string;
name?: string;
}
class Project implements ProjectInterface {
id: string;
name?: string = 'default name';
}
const project: Project = {id: 'hello'};
console.log(project.name);
new Project().