Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/src/types/index.ts>DeepPickN

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
type alias DeepPickN
import { type DeepPickN } from "https://deno.land/x/valibot@v0.35.0/src/types/index.ts";

Deeply picks N specific keys.

Type Parameters

TInput
TPathList extends readonly PathKeys<TInput>[]
definition: TPathList extends readonly [infer TPathKeys extends PathKeys<TInput>, ...infer TRest extends PathKeys<TInput>[]] ? TRest extends readonly [unknown, ...(readonly unknown[])] ? DeepMerge<DeepPick<TInput, TPathKeys>, DeepPickN<TInput, TRest>> : DeepPick<TInput, TPathKeys> : TInput