ts-morph-structures

Home > ts-morph-structures > AddExportContext

AddExportContext interface

A description of the exports to add.

Signature:

export interface AddExportContext 

Properties

Property Modifiers Type Description
exportNames   readonly string[] The names to add to the import. Pass an empty array for “*”.
isDefaultExport   boolean True if the import is the default. exportNames will then be the default export name.
isType   boolean True if the export names are types only.
pathToExportedModule   string This could be an absolute path, or a package import like “ts-morph-structures”.