Module

x/ts_morph/mod.ts>Signature

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Go to Latest
class Signature
import { Signature } from "https://dotland.deno.dev/x/ts_morph@17.0.0/mod.ts";

Constructors

new
private
Signature()

Properties

readonly
compilerSignature: ts.Signature

Gets the underlying compiler signature.

Methods

getDeclaration():
| MethodSignature
| MethodDeclaration
| ConstructorDeclaration
| GetAccessorDeclaration
| SetAccessorDeclaration
| CallSignatureDeclaration
| ConstructSignatureDeclaration
| IndexSignatureDeclaration
| FunctionTypeNode
| ConstructorTypeNode
| FunctionExpression
| ArrowFunction
| FunctionDeclaration
| JSDocFunctionType

Gets the signature's declaration.

getDocumentationComments(): SymbolDisplayPart[]

Get the documentation comments.

getJsDocTags(): JSDocTagInfo[]

Gets the JS doc tags.

getParameters(): Symbol[]

Gets the parameters.

Gets the signature return type.

getTypeParameters(): TypeParameter[]

Gets the type parameters.