parjs
Version:
Library for building parsers using combinators.
18 lines • 736 B
TypeScript
import type { ImplicitParjser, ParjsCombinator } from "../../index";
import type { getParsedType } from "../util-types";
/**
* Applies the source parser followed by `next`. Yields the result of `next`.
*
* @param next
*/
export declare function qthen<T>(next: ImplicitParjser<T>): ParjsCombinator<unknown, T>;
/**
* Applies the source parser followed by `next`. Yields the result of the source parser.
*
* @param next
*/
export declare function thenq<T>(next: ImplicitParjser<unknown>): ParjsCombinator<T, T>;
export declare function then<T, Parsers extends ImplicitParjser<unknown>[]>(...parsers: Parsers): ParjsCombinator<T, [T, ...{
[K in keyof Parsers]: getParsedType<Parsers[K]>;
}]>;
//# sourceMappingURL=then.d.ts.map