parjs
Version:
A parser-combinator library for JavaScript.
12 lines (11 loc) • 323 B
TypeScript
/**
* @module parjs
*/
/** */
import { FailureInfo } from "../result";
import { Parjser } from "../parjser";
/**
* Returns a parser that will always fail with the given failure info.
* @param pFailure How the parser should fail.
*/
export declare function fail<T = never>(pFailure?: Partial<FailureInfo>): Parjser<T>;