Hello Angular Community,
I have a question regarding nesting three interfaces within another interface. Let me explain with some code: I am attempting to integrate the IProject1, IProject2, and IProject3 interfaces into the IAdmin2 interface:
Thank you in advance
import {IBusiness} from "./business";
import {ITechnology} from "./technology";
export interface IAdmin2 {
id: number;
business_id: number;
technology_ids: number[];
trigram: string;
position: string;
years_experience: number;
notification: boolean;
availability: any;
form_admin2_file: File;
business: IBusiness;
technologies: ITechnology[];
admin2Translations: any;
translations: any;
delete: any;
data: any;
** Include interface Iproject1**
** Include interface Iproject2**
** Include interface Iproject3**
}
import {ITechnology} from "./technology";
import {IProjectFile} from "./project-file";
export interface IProject1 {
id: number;
name: string;
start_date: any;
technologies: ITechnology[];
description: string;
sector_id: number;
end_date: any;
team_size: number;
}
import {ITechnology} from "./technology";
import {IProjectFile} from "./project-file";
export interface IProject2 {
id: number;
name: string;
start_date: any;
technologies: ITechnology[];
description: string;
sector_id: number;
end_date: any;
team_size: number;
}
import {ITechnology} from "./technology";
import {IProjectFile} from "./project-file";
export interface IProject3 {
id: number;
name: string;
start_date: any;
technologies: ITechnology[];
description: string;
sector_id: number;
end_date: any;
team_size: number;
}