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

x/tsafe/PickRequired.ts>PickRequired

🔩 The missing TypeScript utils
Go to Latest
type alias PickRequired
import { type PickRequired } from "https://deno.land/x/tsafe@v1.6.5/PickRequired.ts";

PickRequired<{ p1: string; p2?: string; p3?: number; p4: string; }> is the type { p1: string; p4: number; }

Type Parameters

T extends Record<string, unknown>
definition: Omit<T, keyof PickOptionals<T>>