An enum value is not recognised as a string and vice versa, even though the value of them match. You need to set the interface to accept the enum:
{ id: number; status: MyStatus; }
If you absolutely have to use a string, you can use as
to get around it, but in all honesty these usually mean you're going against the benefits of TypeScript:
item = { id: 123, status: MyStatus.Pending as string }
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…