(arr: any)
| 29 | type Ref = List<PathElement>; |
| 30 | |
| 31 | function checkStringArray(arr: any): string[] { |
| 32 | if (!Array.isArray(arr)) { |
| 33 | return panic(`Expected a string array, but got ${arr}`); |
| 34 | } |
| 35 | for (const e of arr) { |
| 36 | if (typeof e !== "string") { |
| 37 | return panic(`Expected string, but got ${e}`); |
| 38 | } |
| 39 | } |
| 40 | return arr; |
| 41 | } |
| 42 | |
| 43 | function parseRef(ref: any): [Ref, string] { |
| 44 | if (typeof ref !== "string") { |
no test coverage detected
searching dependent graphs…