isAugmentation

tcmts.loader.isAugmentation · #i32qf5fn · term · runs anywhere

Whether a definition is an augmentation (declare global { … }): it declares no name of its own, so nothing imports it, and every check in the codebase includes it instead (see writeShim).

import type { DefRecord } from "#codebase/tcmts/core/types";

export const isAugmentation = (rec: Pick<DefRecord, "ir">): boolean =>
  rec.ir.startsWith('["Def","Augment"')

uses

used by