Getting Started
Writing content
API Documentation
Customization
Recipes
API References Develop
@ng-doc/builder / Function

displayType

Display type of the node. Structures don't return inferred types, so we need to get the type from the node.

Presentation

function displayType(
  node: Node<Node>,
  typeFormatFlags: TypeFormatFlags = TypeFormatFlags.NoTruncation,
): string;

Returns

string

Parameters

NameTypeDescription
node
Node<Node>
typeFormatFlags
TypeFormatFlags