Type alias UnionOfCaptures<T>

UnionOfCaptures<T>: Prettify<ExtractCaptures<ExtractCaptureParsers<T>>>

Convenience type where given an array of parsers and capture parsers, it first gets the capture parsers, then extracts the capture types, and returns a union of all the capture types. Example: { name: string } | { age: number }

Type Parameters

Generated using TypeDoc