parjs
Version:
Library for building parsers using combinators.
10 lines • 492 B
TypeScript
import type { Parjser } from "../parjser";
/**
* Returns a parser that will parse any of the strings in `strs` and yield the text that was parsed.
* If it can't, it will fail softly without consuming input.
*
* @param strs A set of string options to parse. In typescript, you can also use a constant tuple if
* you pass it in using the spread operator (`...`).
*/
export declare function anyStringOf<T extends string>(...strs: T[]): Parjser<T>;
//# sourceMappingURL=string-of.d.ts.map