Skip to content

Commit abbf14e

Browse files
committed
Fix types for azurite container
1 parent 433a939 commit abbf14e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/testcontainers/src/generic-container/abstract-started-container.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class AbstractStartedContainer implements StartedTestContainer {
4343
return this.startedTestContainer.getFirstMappedPort();
4444
}
4545

46-
public getMappedPort(port: number, protocol?: string): number {
46+
public getMappedPort(port: string | number, protocol?: string): number {
4747
return this.startedTestContainer.getMappedPort(port, protocol);
4848
}
4949

packages/testcontainers/src/generic-container/started-generic-container.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class StartedGenericContainer implements StartedTestContainer {
136136
return this.boundPorts.getFirstBinding();
137137
}
138138

139-
public getMappedPort(port: number, protocol: string = "tcp"): number {
139+
public getMappedPort(port: string | number, protocol: string = "tcp"): number {
140140
return this.boundPorts.getBinding(port, protocol);
141141
}
142142

packages/testcontainers/src/test-container.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export interface StartedTestContainer extends AsyncDisposable {
7171
getHost(): string;
7272
getHostname(): string;
7373
getFirstMappedPort(): number;
74-
getMappedPort(port: number, protocol?: string): number;
74+
getMappedPort(port: string | number, protocol?: string): number;
7575
getName(): string;
7676
getLabels(): Labels;
7777
getId(): string;

0 commit comments

Comments
 (0)