How can we define the type that follows the rules below with typescript:
- has certain keys and values(say: key1 of
srtingtype and its value asDate) - may (or may not) have any kind of key-value pairs for the rest
image:
{
"key1": new Date(),
"otherKey": "any value",
...
}
Thanks!