Getting false-positive in JetBrains WebStorm 2024.1.5 @contact-details.component.html#L76:
Argument type Readonly<Record<string, IRelationshipRole>> is not assignable to parameter type IRelationshipRole
export interface IRelationshipRole {
readonly created: IWithCreatedShort;
}
export type IRelationshipRoles = Readonly<Record<string, IRelationshipRole>>;
<sneat-relationship-form
...
(relatedAsChange)="onRelatedAsChanged($event)"
/>
export class ContactDetailsComponent {
protected onRelatedAsChanged(relatedAs: IRelationshipRoles): void {
}
export class RelationshipFormComponent {
@Output() readonly relatedAsChange = new EventEmitter<IRelationshipRoles>();
}
