@openpit/engine
    Preparing search index...

    Type Alias MutationFn

    MutationFn: (this: Record<PropertyKey, unknown>) => SynchronousMutationResult

    A synchronous side effect invoked with this bound to its mutation object.

    The engine binds this to whichever object carries the pair - the Mutation instance, or the plain { commit, rollback } literal a policy returned - so a callback cannot know more about this than that it is an object, and its members read as unknown. A callback that needs typed state should close over that state instead of reaching through this.

    Type Declaration