Consider a scenario where I have a generic type defined as follows:
type Item<T> = {a:T; B:T}
In this case, I aim to automatically determine an object with consistent fields types without explicitly stating the generic type:
const items: Record<string, Item<?>> = {
first: {a:1, b:2},
second: {a:'asd'; b:'asd'}
third: {a:1; b:'qwe'} // The error should occur here because the generic type is not specified
} as const