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

x/valibot/src/index.ts>DeepPickN

The modular and type safe schema library for validating structural data 🤖
Latest
type alias DeepPickN
Re-export
import { type DeepPickN } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/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