Type alias WithSandboxCallback<T, R>

WithSandboxCallback<T, R>: ((...nodes) => boolean | {
    commit: boolean;
    return: R;
})

Callback function for SandboxManager.withSandbox.

Type Parameters

  • T extends readonly [object, ...object[]]
  • R

Type declaration

    • (...nodes): boolean | {
          commit: boolean;
          return: R;
      }
    • Parameters

      • Rest ...nodes: T

      Returns boolean | {
          commit: boolean;
          return: R;
      }