This typed function is helpful in filtering out the successes from an array of results while preserving type information. For example:
// type is ParserSuccess[]results.filter(isSuccess);// type is ParserResult[]results.filter(r => r.success); Copy
// type is ParserSuccess[]results.filter(isSuccess);// type is ParserResult[]results.filter(r => r.success);
a parser result
Generated using TypeDoc
This typed function is helpful in filtering out the successes from an array of results while preserving type information. For example: