Share

tcmts.share.Share · #df2bxdk3 · type

A page being made: the codebase served, who's asking, and where from.

import type { Codebase } from "#codebase/tcmts/cli/codebase";
import type { Caller, ServerUser } from "#codebase/tcmts/cli/sync";
import type { ShareCache } from "#codebase/tcmts/share";

export interface Share {
  cb: Codebase;
  caller: Caller;
  users: ServerUser[];
  isPublic: boolean;
  cache: ShareCache;
  url: URL;
  /** the server's address, as the browser reached it (for `tcm remote add`) */
  origin: string;
  /**
   * a codebase shown, not served (`tcm serve --forge`): read by anyone, with nothing to pull from, sign in to or
   * contribute to
   */
  shown?: boolean;
}

uses

used by