Skip to content

Commit 3406f18

Browse files
authored
fix(plugin): add env parameter to WorkspaceAdaptor.create type (#23235)
1 parent 7e576ee commit 3406f18

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/plugin/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ export type WorkspaceAdaptor = {
4949
name: string
5050
description: string
5151
configure(config: WorkspaceInfo): WorkspaceInfo | Promise<WorkspaceInfo>
52-
create(config: WorkspaceInfo, from?: WorkspaceInfo): Promise<void>
52+
create(
53+
config: WorkspaceInfo,
54+
env: Record<string, string | undefined>,
55+
from?: WorkspaceInfo,
56+
): Promise<void>
5357
remove(config: WorkspaceInfo): Promise<void>
5458
target(config: WorkspaceInfo): WorkspaceTarget | Promise<WorkspaceTarget>
5559
}

0 commit comments

Comments
 (0)