[I] LibraryInstance
Resolution and exported contracts of a JavaScript library loaded by the program.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
definition? | TypeSpecLibrary<any, Record<string, never>, never> | The entry point’s $lib export, if it declares a TypeSpec library. |
entrypoint | JsSourceFileNode | Loaded JavaScript entry point and its exports. |
linter | LinterResolvedDefinition | Resolved $linter export; populated when the entry point provides a linter. |
metadata | LibraryMetadata | Package metadata, or standalone-file metadata when no package was resolved. |
module | ModuleResolutionResult | Resolved package or standalone file from which the JavaScript entry point was loaded. |