I need to design a type that includes one mandatory property and allows for any additional properties. For instance, I require all objects to have an _id property of type string.
{_id: "123"} // This will meet the criteria
{a: 1} // This will not work as it lacks the _id field
{_id:"sadad", a:1} // This is acceptable
What approach can I take in typescript to achieve this?