(expr: unknown)
| 152 | return results.length > 0 ? results[results.length - 1] : undefined; |
| 153 | |
| 154 | async function evaluate(expr: unknown): Promise<unknown> { |
| 155 | return typeof expr === "object" && expr !== null ? |
| 156 | await evaluateObject(expr as Record<string, unknown>) : |
| 157 | expr; |
| 158 | } |
| 159 | |
| 160 | async function evaluateObject(obj: Record<string, unknown>) { |
| 161 | if (obj.hasOwnProperty("@ref")) { |
no test coverage detected
searching dependent graphs…