UNPKG

asyncerator

Version:

Provide supporting types for AsyncIterable/AsyncIterableIterators, promisified stream.pipeline implementation, and Array-like utility operators, sources and sinks.

7 lines (6 loc) 253 B
import type { Operator } from './index'; /** * Similar to `Array.flat`, flatten array inputs into a single sequence of values. * @param depth */ export default function <Input>(depth?: number): Operator<Input, Input extends (infer T)[] ? T : Input>;