UNPKG

rolldown

Version:

Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.

15 lines (14 loc) 693 B
import { s as MaybePromise } from "./shared/utils-BJWI2OzT.mjs"; import "./shared/binding-lSvYApx7.mjs"; import { x as Plugin } from "./shared/define-config-CXCkQG1z.mjs"; //#region src/plugin/parallel-plugin-implementation.d.ts type ParallelPluginImplementation = Plugin; type Context = { /** * Thread number */ threadNumber: number; }; declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>; //#endregion export { type Context, type ParallelPluginImplementation, defineParallelPluginImplementation };