ScratchProblem

tcmts.studio.ScratchProblem · #zgqeprzf · type

What's wrong with a scratch file, as tcm checks it: where (its line and column, from 1), and what, from TypeScript, tcm or oxlint; and what would fix it, when that's known (a name the codebase has, imported).

export interface ScratchProblem {
  line: number;
  col: number;
  message: string;
  severity: "error" | "warning";
  /** how much of the line it's about (characters), when that's known: else the word there */
  length?: number;
  /** who said it: TypeScript or tcm (unsaid), or oxlint (its rule) */
  source?: string;
  /** what would fix it, each the changes to the file it makes (offsets in the text checked) */
  fixes?: { label: string; changes: { from: number; to: number; insert: string }[] }[];
}

used by