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

12 lines (10 loc) 352 B
import type { FieldPathByValue, FieldPathValue } from "react-hook-form"; export type Unwinded<T, K> = T extends Record<string, unknown> ? K extends FieldPathByValue<T, ReadonlyArray<unknown>> ? { [key in K]: FieldPathValue<T, K> extends ReadonlyArray<infer U> ? U : never; } & Omit<T, K> : never : never;