I search method for convert object type, for example
type a = {
code: 404,
hello: 'world'
};
to entries type that have format of tuple
type TypeA = [['code', 404], ['hello', 'world']];
// or
type TypeA = [['hello', 'world'], ['code', 404],];
but still can write only generic that will combine entries elements type in union
type Entries<T> = { [K in keyof T]: [K, T[K]] }[keyof T][];
// it's will generate
type wrongTypeA = (["code", 404] | ["hello", "world"])[]; // it is union