I am trying to write up an interface class which also contains other classes but i am getting an error when i do so but not sure what is wrong:
Interface:
export interface Languages{
static English = class{
id: number,
section:number,
name: string
},
static Chinese = class{
id: number,
section: number,
name: string
}
}
Both static and English are showing errors stating: [ts] Property or signature expected.
[ts] Cannot find name 'English'.
staticin an interface. An interface describes how the instance looks like. If you want to describe static members/methods you need to create a different interface to represent that, like you have with Array and ArrayConstructor for example