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

Function getAliasStructure

test/runner/definitions_test.js:403–413  ·  view source on GitHub ↗

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

(node)

Source from the content-addressed store, hash-verified

401 * @returns {import('ts-morph').TypeAliasDeclarationStructure}
402 */
403function getAliasStructure(node) {
404 const result = node.getStructure()
405 const type = node.getType()
406 const properties = type.getProperties().reduce((arr, symbol) => {
407 const node = symbol.getValueDeclaration()
408 if (node) arr.push(node.getStructure())
409 return arr
410 }, [])
411 if (properties.length) result.properties = properties
412 return result
413}

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected