MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / getReturnStructure

Function getReturnStructure

test/runner/definitions_test.js:392–397  ·  view source on GitHub ↗

* @param {import('ts-morph').Node} node * @returns {import('ts-morph').Structure[]}

(node)

Source from the content-addressed store, hash-verified

390 * @returns {import('ts-morph').Structure[]}
391 */
392function getReturnStructure(node) {
393 /** @type {import('ts-morph').Type} */
394 const returnType = node.getSignature().getReturnType()
395 const nodes = returnType.getSymbol().getDeclarations()
396 return nodes.map(node => node.getStructure())
397}
398
399/**
400 * @param {import('ts-morph').Node} node

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected