weasel API - v0.8.0
    Preparing search index...

    Function registerOpFactory

    • Register an op-factory builder under a stable name. The builder receives the serialized args and must return an Op equivalent to one freshly constructed at the original call site (apply and invert behave the same). Idempotent on the same (name, build) pair; a second registration with a different builder silently overwrites — kit modules import each factory exactly once at init, so this never races in practice.

      Type Parameters

      • A

      Parameters

      • name: string
      • build: (args: A) => Op

      Returns void