@dxos/echo
    Preparing search index...

    Function defineRename

    • Define a migration that renames a named entity.

      Applying it rewrites every reference pointing at from to point at to, preserving the reference's version suffix. Idempotent: a reference that already reads correctly is not written.

      Type Parameters

      • const From extends string
      • const To extends string

      Parameters

      • options: { from: ValidName<From>; to: ValidName<To> }

      Returns RenameMigration

      const migration = Migration.defineRename({
      from: 'org.example.operation.foo',
      to: 'org.example.operation.bar',
      });

      O(1) at definition time.