Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 591 Bytes

Get.md

File metadata and controls

21 lines (11 loc) · 591 Bytes

quetch


quetch / Get

Type Alias: Get<T, P>

Get<T, P>: [P] extends [readonly [infer K, ...(infer R)]] ? K extends keyof T ? R extends Path<T[K]> ? Get<T[K], R> : T[K] : never : [P] extends [keyof T] ? T[P] : T

Returns the type of the property at the specified P path.

Type Parameters

T

P

Defined in

lib/types/Get.ts:6