12 lines
575 B
TypeScript
12 lines
575 B
TypeScript
import { Gt as MaybePromise, T as Plugin } from "./shared/define-config-kIZKjX8Q.mjs";
|
|||
|
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
||
|
|
type ParallelPluginImplementation = Plugin;
|
||
|
|
type Context = {
|
||
|
|
/**
|
||
|
|
* Thread number
|
||
|
|
*/
|
||
|
|
threadNumber: number;
|
||
|
|
};
|
||
|
|
export declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
|
||
|
|
//#endregion
|
||
|
|
export type { Context, ParallelPluginImplementation };
|