LibraryEntry

tcmts.cli.libraries.LibraryEntry · #rdxs4aw2 · type

What a namespace's record says of a library it holds, by the name the library is mounted at.

export interface LibraryEntry {
  /** the library's namespace hash: what's mounted is exactly that namespace's names */
  namespace: string;
  /** the release it is (`geo@1.2.0`), if it was added as one */
  release?: string;
  /**
   * where to fetch it, in the order they're tried: remotes' names, URLs or other codebases' directories (the first is
   * where it came from; the rest, mirrors)
   */
  sources: string[];
  /**
   * who announced it, if it was added as an announced release (`@alice.dev/geo@1.2.0`): their DID, which upgrades
   * read announcements from (a handle can change hands; a DID can't)
   */
  did?: string;
  /** their handle when it was added or last upgraded, for showing: the DID is what's trusted */
  handle?: string;
}

used by