Konwertuj TUPE na TypeScript

//Tuple to Object
export type TupleToObject<T extends readonly any[]> = {
	[K in T[number]]: K;
};
const tuple = ['tesla 1', 'model 3', 'model X', 'model Y'] as const;
type result = TupleToObject<typeof tuple>; // expected { tesla: 'tesla', 'model 3': 'model 3', 'model X': 'model X', 'model Y': 'model Y'}
Husnain Syed