export interface IHealthPlanCard {
_id: string,
statusId: string;
}
const cards: IHealthPlanCard[] = await healthPlanCardsCollection.find(...)
cards.filter(card => card.statusId.equals(cardStatusId))
I encountered an issue in this scenario: An error occurred stating: 'equals' does not exist on type 'string'.ts(2339)
I am unable to use the following syntax:
export interface IHealthPlanCard {
_id: string,
statusId: string | eqauls;
}