()
| 27 | : never; |
| 28 | |
| 29 | function* ParseInt() { |
| 30 | const isNegative: boolean = yield has('-'); |
| 31 | const [stringValue]: [string] = yield /^\d+/; |
| 32 | return parseInt(stringValue, 10) * (isNegative ? -1 : 1); |
| 33 | } |
| 34 | |
| 35 | interface MatchMediaContext { |
| 36 | mediaType: 'screen' | 'print'; |