In the type, is it possible to convert the array type to the object type?
class Ad {
constructor(name: string, age: number) {}
}
type Ac = ConstructorParameters<typeof Ad>
// Ac = [name: string, age: number]
i want this
type ?<T> = {...}
type Ac2 = ?<Ac>
// type Ac2 = {
// name: string
// age: number
//}