Skip to content

Commit

Permalink
Export parcel class
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadapc committed Aug 23, 2024
1 parent 15e86cd commit 81c73b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/core/core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ export class Atlaspack {
): Promise<AsyncSubscription>;
}

export const Parcel = Atlaspack;
export class Parcel {
constructor(options: InitialAtlaspackOptions);
run(): Promise<BuildSuccessEvent>;
watch(
cb?: (err: Error | null | undefined, buildEvent?: BuildEvent) => unknown,
): Promise<AsyncSubscription>;
}

export declare function createWorkerFarm(
options?: Partial<FarmOptions>,
Expand Down

0 comments on commit 81c73b3

Please sign in to comment.