Skip to main content
Module

x/ok_computer/utils.ts>SelectivePartial

λ "Functions all the way down" data validation for JavaScript and TypeScript.
Latest
type alias SelectivePartial
import { type SelectivePartial } from "https://deno.land/x/ok_computer@v2.0.2/utils.ts";

Type Parameters

T
K extends keyof T
definition: Partial<Pick<T, K>> & Required<Pick<T, Exclude<keyof T, K>>> extends infer U ? [P in keyof U]: U[P] : never