UNPKG

@ng-doc/builder

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

25 lines (23 loc) 833 B
import { Node } from 'ts-morph'; /** * Resolves the parent node (TypeReference or TypeAliasDeclaration name) * of a property that is defined in a type alias declaration. * * Specifically, this resolves type alias declarations that resolve to types * that are "object-like", including: * - IntersectionTypes, * - TypeLiterals, and * - TypeReferences (which resolve to IntersectionTypes or TypeLiterals) * * For other types (e.g. UnionType) it just defaults back to the existing * rendering. * * @param property * @param currentNode * @note * Similar to `getMemberParent` but handling type aliases declarations * rather than member inheritance. * * @see libs/builder/helpers/typescript/member/get-member-parent.ts */ export declare function getDefinedInParent(property: Node, currentNode: Node): Node | undefined;