* @param {T} shouldBeTrueish * @param {...*} args * @return {T} * @template T
(shouldBeTrueish, ...args)
| 34 | * @template T |
| 35 | */ |
| 36 | function userAssert(shouldBeTrueish, ...args) { |
| 37 | if (!shouldBeTrueish) { |
| 38 | throw new Error(`[${TAG}] ${args.join(' ')} ${DOCS_URL}`); |
| 39 | } |
| 40 | return shouldBeTrueish; |
| 41 | } |
| 42 | |
| 43 | const validMethods = [ |
| 44 | 'pause', |
no outgoing calls
no test coverage detected