parallel-plugin.d.mts 608 B

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