# TSPackageScope

## Members

Extends [OutputScope](../../../core/types/outputscope/)

|                    |                                                                               |                                                                                                                                                                                                                                                  |
| ------------------ | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| constructor        | (name: string, version: string, path: string, options: TSPackageScopeOptions) | Constructs a new instance of the [`TSPackageScope`](TSPackageScope.md) class                                                                                                                                                                                          |
| addDependency      | (pkg: TSPackageScope) => void                                                 |                                                                                                                                                                                                                                                  |
| addExport          | (publicPath: string, module: TSModuleScope) => void                           |                                                                                                                                                                                                                                                  |
| addModule          | (module: TSModuleScope) => void                                               |                                                                                                                                                                                                                                                  |
| builtin            | boolean                                                                       | Whether this is a built-in package provided by the platform.                                                                                                                                                                                     |
| copyTo             | () => TSPackageScope                                                          |                                                                                                                                                                                                                                                  |
| debugInfo          | Record\<string, unknown>                                                      |                                                                                                                                                                                                                                                  |
| dependencies       | Set<[TSPackageScope](../tspackagescope/)>                                     | The scopes for the packages this package depends on.                                                                                                                                                                                             |
| exportedSymbols    | Map\<string, [TSModuleScope](../tsmodulescope/)>                              | The symbols exported by this package. They are broken down by which paths they are exported from. It is possible a symbol may be present at multiple paths, in which case emitters can decide which symbol to use based on their own heuristics. |
| findExportedSymbol | (refkey: Refkey) => \[string, TSModuleScope] \| null                          |                                                                                                                                                                                                                                                  |
| modules            | Set<[TSModuleScope](../tsmodulescope/)>                                       | All of the modules contained within the package. These modules may or may not be exported.                                                                                                                                                       |
| path               | string                                                                        | The path of the root directory of the package.                                                                                                                                                                                                   |
| version            | string                                                                        | The version of the this package.                                                                                                                                                                                                                 |
