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

x/yano3nora_tsutils/main.ts>DeepPartialPick

TypeScript Utilities as a npm dual package by Deno.
Latest
type alias DeepPartialPick
import { type DeepPartialPick } from "https://deno.land/x/yano3nora_tsutils@v0.29.0/main.ts";

Examples

type User = { id: number name: string profile: { age: number email: string } }

type UserOptionalProfile = DeepPartialPick<User, 'id' | 'name'> const u: UserOptionalProfile = { id: 1, name: 'john' }

Type Parameters

T
K extends keyof T
definition: DeepPartial<T> & Pick<T, K>