(value: any)
| 19 | } |
| 20 | |
| 21 | export function* getAstValues(value: any): Generator<AstType, void, unknown> { |
| 22 | if (value == null || typeof value !== 'object') return; |
| 23 | |
| 24 | if (Array.isArray(value)) for (const v of value) yield* getAstValues(v); |
| 25 | |
| 26 | if (isAst(value)) yield value; |
| 27 | |
| 28 | if (Object.getPrototypeOf(value) !== Object.prototype) return; |
| 29 | |
| 30 | for (const v of Object.values(value)) yield* getAstValues(v); |
| 31 | } |
| 32 | |
| 33 | export function resolve(value: any, config: Config = {}): any { |
| 34 | if (value == null || typeof value !== 'object') return value; |
nothing calls this directly
no test coverage detected
searching dependent graphs…