UNPKG

parjs

Version:

A parser-combinator library for JavaScript.

12 lines (11 loc) 287 B
/** * @module parjs */ /** */ import { Parjser } from "../parjser"; /** * Returns a parser that succeeds without consuming input and yields the * constant `value`. * @param value The value the returned parser will yield. */ export declare function result<T>(value: T): Parjser<T>;