Attempting to establish a type for an object
Consider the following object structure:
{
a: 123,
b: "hello",
c: {
d:"world"
}
}
The keys present in the object are unknown.
To define its type, I would use Record<string, any>
However, what if only one key is known and the rest remain unknown?
In this scenario, let's assume I know the type of c
as c:{d: string}
but the types of other keys are still unidentified. In such cases, I would retain them as Record<string, any>