on this piece of code
export interface Field {
selected: boolean;
value: any;
}
export interface ConflictingVersionModel {
[key: string]: Field;
selected: boolean;
}
I get this error: TS2411: Property 'selected' of type 'boolean' is not assignable to 'string' index type 'Field'.
the same one if I try:
export interface ConflictingVersionModel {
[key: string]: {
selected: boolean;
value: any;
};
selected: boolean;
}
Any ideas on what might be wrong?