(message: string)
| 35 | } |
| 36 | |
| 37 | function fail(message: string): never { |
| 38 | throw new KimiError(ErrorCodes.CONFIG_INVALID, message); |
| 39 | } |
| 40 | |
| 41 | function parsePositiveInt(raw: string, varName: string): number { |
| 42 | if (!/^\d+$/.test(raw) || Number(raw) <= 0) { |
no outgoing calls
no test coverage detected