TypeScript resource. Basically a file that is located somewhere.

Export

Implements

Implements

Hierarchy

  • File

Implements

Constructors

  • Parameters

    • filePath: string
    • rootPath: string
    • start: number
    • end: number

    Returns File

Properties

declarations: Declaration[] = []

List of declarations that are contained in this resource.

Memberof

Resource

end: number

The ending character of the node in the document.

Memberof

Node

exports: Export[] = []

List of exports contained in this resource.

Memberof

Resource

filePath: string
imports: Import[] = []

List of imports contained in this resource.

Memberof

Resource

resources: Resource[] = []

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

Memberof

Resource

rootPath: string
start: number

The starting character of the node in the document.

Memberof

Node

usages: string[] = []

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

Memberof

Resource

Accessors

  • get identifier(): string
  • "Unique" identifier for this resource. Can be the filepath for files or node identifiers for node modules.

    Memberof

    Resource

    Returns string

  • get isWorkspaceFile(): boolean
  • Determines if a file is a workspace file or an external resource.

    Memberof

    File

    Returns boolean

  • get 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

    Returns string[]

  • get parsedPath(): ParsedPath
  • Returns the parsed path of a resource.

    Memberof

    File

    Returns ParsedPath

Generated using TypeDoc