Unwraps nested nodes into raw Python AST.
(value: I)
| 221 | |
| 222 | /** Unwraps nested nodes into raw Python AST. */ |
| 223 | private unwrap<I>(value: I): I extends PyDsl<infer N> ? N : I { |
| 224 | return (isNode(value) ? value.toAst() : value) as I extends PyDsl<infer N> ? N : I; |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | type NodeOfMaybe<I> = undefined extends I |