(x: any)
| 14 | export type StringMap = { [name: string]: any }; |
| 15 | |
| 16 | export function checkStringMap(x: any): StringMap { |
| 17 | if (typeof x !== "object") { |
| 18 | return panic(`Value must be an object, but is ${x}`); |
| 19 | } |
| 20 | return x; |
| 21 | } |
| 22 | |
| 23 | export function checkArray(x: any): any[] { |
| 24 | if (!Array.isArray(x)) { |
no test coverage detected
searching dependent graphs…