Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/tsafe/PickRequired.ts

🔩 The missing TypeScript utils
Go to Latest
File
import { 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>>;