Decl

tcmts.cli.mirror.Decl · #lbi3rjlb · type

A top-level declaration in a file: where its code is, where its doc comment is, whether it's exported.

export interface Decl {
  start: number;
  end: number;
  doc?: { start: number; end: number };
  exported: boolean;
  /** declared alongside others in one statement (`const a = 1, b = 2`): rewritten as a whole only */
  shared: boolean;
}

used by