TypeScript resource. Declaration of a typescript namespace (i.e. declare foobar).

Export

Implements

Implements

Hierarchy

  • Namespace

Implements

Constructors

Properties

declarations: Declaration[] = []

List of declarations that are contained in this resource.

Memberof

Resource

end: number

The ending character of the node in the document.

Memberof

Node

exports: Export[] = []

List of exports contained in this resource.

Memberof

Resource

imports: Import[] = []

List of imports contained in this resource.

Memberof

Resource

name: string
resources: Resource[] = []

List of subresources (like namespaces in a file) of this resource.

Memberof

Resource

start: number

The starting character of the node in the document.

Memberof

Node

usages: string[] = []

List of used identifiers in this resource. (i.e. actual used string identifiers to calculate missing imports and stuff.)

Memberof

Resource

Accessors

  • get identifier(): string
  • "Unique" identifier for this resource. Can be the filepath for files or node identifiers for node modules.

    Memberof

    Resource

    Returns string

  • get nonLocalUsages(): string[]
  • Returns an array of usages (a usage is a used symbol name in the resource) that are not covered by its own declarations.

    Memberof

    Resource

    Returns string[]

Methods

  • Function that calculates the alias name of a namespace. Removes all underlines and dashes and camelcases the name.

    Returns

    Memberof

    Namespace

    Returns string

Generated using TypeDoc