in keyof T]: T[P];
} & {
[P in keyof U]?: never;
};
type Either<T, U> = Only<T, U> | Only<U, T>;
But didn't work.
This was very much unnecessary; if you had Link and Button types, all you need is type Item = Link | Button;
Обсуждают сегодня