(val: Value | null | undefined)
| 3 | import type { Value, VStr, VNum, VBool, VFn, VObj, VArr, VNull } from './value.js'; |
| 4 | |
| 5 | export function expectAny(val: Value | null | undefined): asserts val is Value { |
| 6 | if (val == null) { |
| 7 | throw new AiScriptRuntimeError('Expect anything, but got nothing.'); |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | export function isBoolean(val: Value): val is VBool { |
| 12 | return val.type === 'bool'; |
no outgoing calls
no test coverage detected