ScratchCheck

tcmts.studio.ScratchCheck · #cojgplqs · type

A scratch file checked: what's wrong with it, or, if nothing is, what updating the codebase with it would do to each definition it holds (as tcm check says it: new, an update, identical to what's there...).

import type { Status } from "#codebase/tcmts/cli/main";
import type { ScratchProblem } from "#codebase/tcmts/studio";

export interface ScratchCheck {
  problems: ScratchProblem[];
  rows: {
    path: string;
    status: Status;
    note?: string;
    kind: string;
    /** an update whose type isn't the one it replaces': what uses it is checked again */
    retyped?: boolean;
    /** the named definitions that use what it replaces (30 at most) */
    usedBy?: string[];
  }[];
  namespace?: string;
}

uses

used by