I declared the following:
ExamTypeId = {
All: {
id: this.examTypeSelectId,
text: 'Exam Type: All',
val: 0
}
}
and an interface:
export interface IEnumElement {
id: string;
text: string;
val: number
}
A function that I call:
checkGrid(expectedCount: number, row: string, params: IEnumElement[]) {
...
...
}
Now I am trying to call my function like this:
page.checkGrid(4, page.gridRow, [page.ExamStatusId.All, page.ExamTypeId.All]);
It is giving me a java exception error which I think is related to the way I am calling the function. Can someone confirm if this is the correct way to set the type for an array of IEnumElement?