parallel-plugin.d.mts 648 B

1234567891011121314
  1. import "./shared/binding-BohGL_65.mjs";
  2. import { w as Plugin, zt as MaybePromise } from "./shared/define-config-cG45vHwf.mjs";
  3. //#region src/plugin/parallel-plugin-implementation.d.ts
  4. type ParallelPluginImplementation = Plugin;
  5. type Context = {
  6. /**
  7. * Thread number
  8. */
  9. threadNumber: number;
  10. };
  11. declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
  12. //#endregion
  13. export { type Context, type ParallelPluginImplementation, defineParallelPluginImplementation };