Im following your videos and constructing my own parser based on your explanation and at this point im just using your same types but for choice I think that overload is nor required and can be replaced by:
export function choice<Parsers extends Parser<any>[]>(parsers: Parsers): Parsers[number] {
...
}
Im following your videos and constructing my own parser based on your explanation and at this point im just using your same types but for choice I think that overload is nor required and can be replaced by: