In my Typescript code, I have an interface called Employees:
export interface Employees {
[employeeId: string]: {
name: string
gender: Gender
}
}
I am trying to declare a variable employees
that is of type Employees
.
Here are the attempts I have made so far:
const employees: Employees{};
const employees: {Employees};
const employees: {}Employees;