UNPKG

parjs

Version:

Library for building parsers using combinators.

8 lines 289 B
import type { ParjsCombinator } from "../parjser"; /** * Applies the source parser. If it fails softly, succeeds and yields `val`. * * @param val */ export declare function maybe<const T, const S = T | undefined>(val?: S): ParjsCombinator<T, T | S>; //# sourceMappingURL=maybe.d.ts.map