UNPKG

sflow

Version:

sflow is a powerful and highly-extensible library designed for processing and manipulating streams of data effortlessly. Inspired by the functional programming paradigm, it provides a rich set of utilities for transforming streams, including chunking, fil

11 lines (9 loc) 303 B
import type { FieldPathByValue, FieldPathValue } from "react-hook-form"; export type Unwinded<T, K> = T extends Record<string, any> ? K extends FieldPathByValue<T, ReadonlyArray<any>> ? { [key in K]: FieldPathValue<T, K>[number]; } & Omit<T, K> : never : never;