parallel-plugin.d.mts 575 B

123456789101112
  1. import { Gt as MaybePromise, T as Plugin } from "./shared/define-config-kIZKjX8Q.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. export declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
  11. //#endregion
  12. export type { Context, ParallelPluginImplementation };