Type alias CaptureParser<T, C>

CaptureParser<T, C>: ((input) => CaptureParserResult<T, C>)

A capture parser is any function that takes a string and returns a CaptureParserResult. A CaptureParserResult is the same as a ParserResult, except it also includes captures, i.e. matches selected using capture.

Type Parameters

Type declaration

Generated using TypeDoc