I have interface items.ts:
export interface item{
Name: string;
IsSystemItem: string;
ConfiguredSegments: ConfiguredSegments;
}
export interface ConfiguredSegments {
LiveA: LiveA;
}
export interface LiveA {
Weight: number;
Id: string;
}
I have a class where i am filling an array of items mockitems.ts :
export const items: item[] = [
{
Name: "Default Item",
IsSystemItem: "yes",
ConfiguredSegments: ConfiguredSegments.LiveA // Here it is throwing error "Cannot find name
ConfiguredSegments"
}
]
How to fill ConfiguredSegments field ?