UNPKG

parjs

Version:

Library for building parsers using combinators.

9 lines 404 B
import type { ParjsCombinator } from "../parjser"; /** The type of an arbitrarily nested array or a non-array element. */ export type NestedArray<T> = T | NestedArray<T>[]; /** * Applies the source parser and projects its result into a flat array - an array with non-array * elements. */ export declare function flatten<T>(): ParjsCombinator<NestedArray<T>, T[]>; //# sourceMappingURL=flatten.d.ts.map