DistributivePick
Allows picking of keys from unions that are disjoint
Signature
export type DistributivePick<T, K extends DistributiveKeys<T>> = T extends unknown ? keyof Pick_<T, K> extends never ? never : { [P in keyof Pick_<T, K>]: Pick_<T, K>[P];} : never;Private types
DistributiveKeysTypeAlias
type DistributiveKeys<T> = T extends unknown ? Keys<T> : never;Pick_TypeAlias
type Pick_<T, K> = Pick<T, Extract<keyof T, K>>;KeysTypeAlias
type Keys<T> = keyof T;Members
This export does not declare public properties or methods in the generated declaration file.