ownEffectsKey

tcmts.cli.effects.ownEffectsKey · #h4jrvfpe · term · runs anywhere

The metadata key a definition's own effects are kept under: ownEffects's hash, so a change to what counts works them out again.

import { ownEffects } from "#codebase/tcmts/core/effects";

export const ownEffectsKey = (): string =>
  `effects ${String((ownEffects as unknown as Record<symbol, string>)[Symbol.for("tcm.hash")] ?? "?").slice(0, 16)}`

uses

used by