Base interface for resources. All resources share the same properties. Resources are files, namespaces or modules.

Export

Interface

Resource

Hierarchy

  • Resource

Implemented by

Properties

declarations: Declaration[]

List of declarations that are contained in this resource.

Memberof

Resource

exports: Export[]

List of exports contained in this resource.

Memberof

Resource

identifier: string

"Unique" identifier for this resource. Can be the filepath for files or node identifiers for node modules.

Memberof

Resource

imports: Import[]

List of imports contained in this resource.

Memberof

Resource

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

resources: Resource[]

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

Memberof

Resource

usages: string[]

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

Memberof

Resource

Generated using TypeDoc