Extracts the type of a specific property from a given object type.
For example: type User = { id: number; name: string }; ExtractPropertyType<User, 'id'> -> number
The object type
The key of the property to extract
The type of the specified property
export type ExtractPropertyType<T, K extends keyof T> = T[K] Copy
export type ExtractPropertyType<T, K extends keyof T> = T[K]
Extracts the type of a specific property from a given object type.
For example: type User = { id: number; name: string }; ExtractPropertyType<User, 'id'> -> number