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

x/typebox/src/typebox.ts>TPickProperties

JSON Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
type alias TPickProperties
import { type TPickProperties } from "https://deno.land/x/typebox@0.26.0-dev.1/src/typebox.ts";

Type Parameters

T extends TProperties
K extends keyof any
definition: Pick<T, Assert<Extract<K, keyof T>, keyof T>> extends infer R ? ([K in keyof R]: Assert<R[K], TSchema> extends TSchema ? R[K] : never) : never