UNPKG

rolldown

Version:

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

11 lines (10 loc) 477 B
import type { MaybePromise } from '../types/utils'; import type { Plugin } from './index'; export type ParallelPluginImplementation = Plugin; export type Context = { /** * Thread number */ threadNumber: number; }; export declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;