I am a beginner in TypeScript and have a question regarding the code where the (position) is referencing another TypeScript model.
Both models are located in the 'model' folder:
export interface Group {
name: string;
opportunities: Opportunity[];
}
opportunity.model.ts
export interface Opportunity {
name: string;
}
This is the content from my company.model.ts
file in the 'model' folder
export interface Company {
companyName: string;
position: opportunity; // my question concerns this line, what should I assign here?
// considering that the content of position is like a dropdown menu
contactNumber: number;
}
Thank you. Any help or guidance would be greatly appreciated as I'm still learning.