ts-morph

Signatures

Type Parameters

const typeParams = signature.getTypeParameters(); // returns: TypeParameter[]

Parameters

const params = signature.getParameters(); // returns: Symbol[]

Return Type

const returnType = signature.getReturnType();

Documentation Comments

const docs = signature.getDocumentationComments();

JS Doc Tags

const tags = signature.getJsDocTags();

Declaration

const declaration = signature.getDeclaration();