Home > ts-morph-structures > getTypeAugmentedStructure
Get a structure for a node, with type structures installed throughout its descendants.
Signature:
declare function getTypeAugmentedStructure(rootNode: NodeWithStructures, userConsole: TypeNodeToTypeStructureConsole, assertNoFailures: boolean): RootStructureWithConvertFailures;
Parameter | Type | Description |
---|---|---|
rootNode | NodeWithStructures | The node to start from. |
userConsole | TypeNodeToTypeStructureConsole | a callback for conversion failures. |
assertNoFailures | boolean | if true, assert there are no conversion failures. |
Returns:
RootStructureWithConvertFailures
the root structure, the root node, and any failures during recursion.