Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents the processor for transpiled declaration (d.ts) files.

It optimizes the namespace declaration, exporting all contents of a same namespace within a single block.

First, it will look for TypeScript declaration namespaces:

namespace myModule {
    export declare class FromFile1 {}
}
namespace myModule {
    export declare interface FromFile2 {}
}
// ...
namespace myModule {
    export declare class FromFileN {}
}

Then, using merge it will optmize all blocks with the same module name:

namespace myModule {
    export declare class FromFile1 {}
    export declare interface FromFile2 {}
    // ...
    export declare class FromFileN {}
}

Hierarchy

  • DtsProcessor

Implements

Index

Constructors

Methods

Constructors

constructor

Methods

merge

  • merge(): null | File
  • Merges the input declaration file of this object, returning the merged file as result.

    Returns null | File

    A file object, containing the results of the merging and all attributes pertaining to it, or null if the file contains no mergeable declarations.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc