こんにちは角度コミュニティ内の複数の他のインターフェイスからインターフェイスを継承することが可能ですインタフェースを実装することがIProject1 & & IProject2 IProject3 IAdmin2インタフェースの一部である:活字体yのは、それは私のコードは私の文章よりもそれを説明すると思い、</p> <p>は別の中にネストされた3つのインタフェースを含めるすることが可能であり、活字体
事前のおかげ
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;
}
実際には、あなたのcondはテキストだけでなくそれについても説明しません。何をしたいですか?インターフェイスから継承しますか?そして、 'extends'を使います。または、他の何か?次に、あなたは何を意味するのか説明しなければなりません。 – Sefe
@Sefe ues thatsそれはインターフェイスから継承する(実際には3)、私は3つのインターフェイスを1つに含める必要があります(おそらく私のポストを更新する必要があります..) –