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>

21 lines (20 loc) 604 B
import { Node, Type, TypeFormatFlags } from 'ts-morph'; /** * Display type of the node. * Structures don't return inferred types, so we need to get the type from the node. * @param node * @param typeFormatFlags */ export declare function displayType(node: Node, typeFormatFlags?: TypeFormatFlags): string; /** * * @param type * @param typeFormatFlags */ export declare function formatType(type: Type, typeFormatFlags?: TypeFormatFlags): string; /** * * @param node * @param typeFormatFlags */ export declare function displayReturnType(node: Node, typeFormatFlags?: TypeFormatFlags): string;