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 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
K extends keyof T
definition: DeepPartial<T> & Pick<T, K>