(obj: T)
| 87 | } |
| 88 | |
| 89 | function asFailedOperation<T>(obj: T): { status: OperationResult, result: T } { |
| 90 | return { |
| 91 | status: OperationResult.Failed, |
| 92 | result: obj |
| 93 | }; |
| 94 | } |
| 95 | |
| 96 | export function countPageRange(text: string): number { |
| 97 | let operation = parsePageRange(text); |