| 8 | * @description If possible use a different mode instead of this one. |
| 9 | */ |
| 10 | export class callback extends ModeAbstract<arguments> { |
| 11 | execute(args: arguments) { |
| 12 | const textString = args.callback(); |
| 13 | |
| 14 | const n = Number(textString); |
| 15 | if (Number.isNaN(n)) throw new Error(`No number found in text '${textString}' (${n})`); |
| 16 | |
| 17 | return n; |
| 18 | } |
| 19 | } |
no outgoing calls
no test coverage detected