Package import specifier.

May be scoped or unscoped package, and may include import sub-path.

Hierarchy

  • Package

Properties

kind: "package"
local: string

Local name within imported package scope.

Part of the name after the the slash (/) for scoped package, or the name itself for unscoped one.

name: string

Imported package name, excluding subpath.

scope: undefined | `@${string}`

Resolved package scope. I.e. the part of the name with @ prefix, if any.

spec: string

Original import specifier.

subpath?: undefined

Generated using TypeDoc