(timeout?: string)
| 86 | return model; |
| 87 | }, |
| 88 | timeout(timeout?: string) { |
| 89 | if (!timeout) { |
| 90 | return 10_000; |
| 91 | } |
| 92 | |
| 93 | parseAssert('timeout', /^\d+$/.test(timeout), 'Must be an integer'); |
| 94 | |
| 95 | const parsed = Number(timeout); |
| 96 | parseAssert('timeout', parsed >= 500, 'Must be greater than 500ms'); |
| 97 | |
| 98 | return parsed; |
| 99 | }, |
| 100 | 'max-length'(maxLength?: string) { |
| 101 | if (!maxLength) { |
| 102 | return 50; |
nothing calls this directly
no test coverage detected