( actual: any, minInclusive: number, maxInclusive: number, )
| 21 | } |
| 22 | |
| 23 | export function assertNumberInRange( |
| 24 | actual: any, |
| 25 | minInclusive: number, |
| 26 | maxInclusive: number, |
| 27 | ): asserts actual is number { |
| 28 | assertNumber(actual, 'Expected a number'); |
| 29 | assertLessThanOrEqual(actual, maxInclusive, 'Expected number to be less than or equal to'); |
| 30 | assertGreaterThanOrEqual(actual, minInclusive, 'Expected number to be greater than or equal to'); |
| 31 | } |
| 32 | |
| 33 | export function assertString(actual: any, msg: string): asserts actual is string { |
| 34 | if (!(typeof actual === 'string')) { |
no test coverage detected
searching dependent graphs…