I want to declare generic object type that is not nested (value is not object/array, only primitive)
For example:
Valid:
{
a:"value",
b:false,
c:4
}
Invalid:
{
a:{b:"c"}
}
{
a:[5]
}
Something like this (of course it's invalid declaration):
interface NotNestedObject {
[x: any]: not Array/Object;
}