Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Resource

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

export
interface

Resource

Hierarchy

  • Resource

Implemented by

Index

Properties

declarations

declarations: Declaration[]

List of declarations that are contained in this resource.

type

{Declaration[]}

memberof

Resource

exports

exports: Export[]

List of exports contained in this resource.

type

{Export[]}

memberof

Resource

identifier

identifier: string

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

type

{string}

memberof

Resource

imports

imports: Import[]

List of imports contained in this resource.

type

{Import[]}

memberof

Resource

nonLocalUsages

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.

type

{string[]}

memberof

Resource

resources

resources: Resource[]

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

type

{Resource[]}

memberof

Resource

usages

usages: string[]

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

type

{string[]}

memberof

Resource

Generated using TypeDoc