Suppose I have the following:
export interface Project {
id: number;
name: string;
description: string;
metaModel: { name: string, id: number };
createdAt: string;
lastEdited: string;
visibilityLevel: VisibilityLevel;
members: string[];
m0files: M0File[];
}
Now I want to extend it as follows:
interface ProjectAndMembership extends Project{
owner: boolean;
}
Is there a way to assign an object or a variable of Project to the new interface ProjectMembership with only providing a boolean value for the owner field?