Skip to main content
Module

x/discord_api_types/utils/internals.ts>DistributivePick

Up to date Discord API Typings, versioned by the API version
Go to Latest
type alias DistributivePick
import { type DistributivePick } from "https://deno.land/x/discord_api_types@0.37.2/utils/internals.ts";

Allows picking of keys from unions that are disjoint

Type Parameters

T
K extends DistributiveKeys<T>
definition: T extends unknown ? keyof Pick_<T, K> extends never ? never : [P in keyof Pick_<T, K>]: Pick_<T, K>[P] : never