parjs
Version:
Library for building parsers using combinators.
14 lines • 526 B
TypeScript
import type { ParjsCombinator, ParjsProjection } from "../parjser";
/**
* Applies the source parser and projects its result with `projection`.
*
* @param projection The projection to apply.
*/
export declare function map<A, B>(projection: ParjsProjection<A, B>): ParjsCombinator<A, B>;
/**
* Applies the source parser and yields the constant value `result`.
*
* @param result The constant value to yield.
*/
export declare function mapConst<T>(result: T): ParjsCombinator<unknown, T>;
//# sourceMappingURL=map.d.ts.map