Skip to content

[I] LibraryInstance

Resolution and exported contracts of a JavaScript library loaded by the program.

PropertyTypeDescription
definition?TypeSpecLibrary<any, Record<string, never>, never>The entry point’s $lib export, if it declares a TypeSpec library.
entrypointJsSourceFileNodeLoaded JavaScript entry point and its exports.
linterLinterResolvedDefinitionResolved $linter export; populated when the entry point provides a linter.
metadataLibraryMetadataPackage metadata, or standalone-file metadata when no package was resolved.
moduleModuleResolutionResultResolved package or standalone file from which the JavaScript entry point was loaded.