File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
packages/testcontainers/src/container-runtime Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1- import { IDockerComposeExecutableOptions } from "docker-compose" ;
21import { Logger } from "../../../common" ;
32
43export type ComposeOptions = {
@@ -9,9 +8,21 @@ export type ComposeOptions = {
98 composeOptions ?: string [ ] ;
109 environment ?: NodeJS . ProcessEnv ;
1110 logger ?: Logger ;
12- executable ?: IDockerComposeExecutableOptions ;
11+ executable ?: ComposeExecutableOptions ;
1312} ;
1413
14+ export type ComposeExecutableOptions =
15+ | {
16+ executablePath : string ;
17+ options ?: string [ ] | ( string | string [ ] ) [ ] ;
18+ standalone ?: never ;
19+ }
20+ | {
21+ executablePath ?: string ;
22+ options ?: never ;
23+ standalone : true ;
24+ } ;
25+
1526export type ComposeDownOptions = {
1627 timeout : number ;
1728 removeVolumes : boolean ;
Original file line number Diff line number Diff line change 11export { getAuthConfig } from "./auth/get-auth-config" ;
22export { ContainerRuntimeClient , getContainerRuntimeClient } from "./clients/client" ;
33export { parseComposeContainerName } from "./clients/compose/parse-compose-container-name" ;
4- export { ComposeDownOptions , ComposeOptions } from "./clients/compose/types" ;
4+ export { ComposeDownOptions , ComposeExecutableOptions , ComposeOptions } from "./clients/compose/types" ;
55export { HostIp } from "./clients/types" ;
66export { ImageName } from "./image-name" ;
You can’t perform that action at this time.
0 commit comments