x/tsafe/PickRequired.ts
123456789import { PickOptionals } from "./PickOptionals.ts";/** * PickRequired<{ p1: string; p2?: string; p3?: number; p4: string; }> * is the type * { p1: string; p4: number; } */export type PickRequired<T extends Record<string, unknown>> = Omit<T, keyof PickOptionals<T>>;