Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeclarationReflection

A reflection that represents a single declaration emitted by the TypeScript compiler.

All parts of a project are represented by DeclarationReflection instances. The actual kind of a reflection is stored in its ┬┤kind┬┤ member.

Hierarchy

Implements

Index

Constructors

constructor

Properties

anchor

anchor: string

The name of the anchor of this child.

categories

categories: ReflectionCategory[]

All children grouped by their category.

children

The children of this reflection.

comment

comment: Comment

The parsed documentation comment attached to this reflection.

cssClasses

cssClasses: string

A list of generated css classes that should be applied to representations of this reflection in the generated markup.

decorates

decorates: Type[]

A list of all types that are decorated by this reflection.

decorators

decorators: Decorator[]

A list of all decorators attached to this reflection.

defaultValue

defaultValue: string

The default value of this reflection.

Applies to function parameters.

extendedBy

extendedBy: Type[]

A list of all types that extend this reflection (e.g. the subclasses).

extendedTypes

extendedTypes: Type[]

A list of all types this reflection extends (e.g. the parent classes).

flags

flags: ReflectionFlags = []

getSignature

getSignature: SignatureReflection

The get signature of this declaration.

groups

groups: ReflectionGroup[]

All children grouped by their kind.

hasOwnDocument

hasOwnDocument: boolean

Is the url pointing to an individual document?

When FALSE, the url points to an anchor tag on a page of a different reflection.

id

id: number

Unique id of this reflection.

implementationOf

implementationOf: Type

A type that points to the reflection this reflection is the implementation of.

Applies to class members.

implementedBy

implementedBy: Type[]

A list of all types that implement this reflection.

implementedTypes

implementedTypes: Type[]

A list of all types this reflection implements.

indexSignature

indexSignature: SignatureReflection

The index signature of this declaration.

inheritedFrom

inheritedFrom: Type

A type that points to the reflection this reflection has been inherited from.

Applies to interface and class members.

kind

The kind of this reflection.

kindString

kindString: string

The human readable string representation of the kind of this reflection.

name

name: string = ""

The symbol name of this reflection.

originalName

originalName: string

The original name of the TypeScript declaration.

overwrites

overwrites: Type

A type that points to the reflection that has been overwritten by this reflection.

Applies to interface and class members.

parent

parent: Reflection

The reflection this reflection is a child of.

setSignature

setSignature: SignatureReflection

The set signature of this declaration.

signatures

signatures: SignatureReflection[]

A list of call signatures attached to this declaration.

TypeDoc creates one declaration per function that may contain ore or more signature reflections.

sources

sources: SourceReference[]

A list of all source files that contributed to this reflection.

type

type: Type

The type of the reflection.

If the reflection represents a variable or a property, this is the value type.
If the reflection represents a signature, this is the return type.

typeHierarchy

typeHierarchy: DeclarationHierarchy

Contains a simplified representation of the type hierarchy suitable for being rendered in templates.

typeParameters

typeParameters: TypeParameterReflection[]

url

url: string

The url of this reflection in the generated documentation.

Methods

findReflectionByName

getAlias

  • getAlias(): string

getAllSignatures

getChildByName

getChildrenByKind

getFullName

  • getFullName(separator?: string): string

hasComment

  • hasComment(): boolean

hasGetterOrSetter

  • hasGetterOrSetter(): boolean

isProject

  • isProject(): boolean

kindOf

setFlag

toObject

  • toObject(): any

toString

  • toString(): string

toStringHierarchy

  • toStringHierarchy(indent?: string): string

traverse

Generated using TypeDoc