MCPcopy Create free account
hub / github.com/hey-api/hey-api / unwrap

Function unwrap

packages/openapi-python/src/py-dsl/base.ts:223–225  ·  view source on GitHub ↗

Unwraps nested nodes into raw Python AST.

(value: I)

Source from the content-addressed store, hash-verified

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
228type NodeOfMaybe<I> = undefined extends I

Callers

nothing calls this directly

Calls 2

isNodeFunction · 0.90
toAstMethod · 0.65

Tested by

no test coverage detected