Export the types used in public method signatures
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- docker, node.js, typescript
Hướng nghiên cứu
Bắt đầu tại packages/testcontainers/src/index.ts và so sánh các export của tệp này với những chữ ký công khai được liệt kê trong issue. Đọc các khai báo kiểu và chữ ký phương thức liên quan để xác nhận những kiểu nào còn thiếu; issue cũng xác định AbstractWaitStrategy là một export còn thiếu. Công việc hoàn tất khi mọi kiểu được dùng trong chữ ký đã export đều có thể được import từ điểm vào của package.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happens
Several types appear in public method signatures but are not exported from packages/testcontainers/src/index.ts, so consumers cannot name them. That makes it awkward to build arguments in a helper, annotate a variable, or write a wrapper.
| Type | Appears in |
|---|---|
BindMount |
withBindMounts |
TmpFs |
withTmpFs |
Ulimits |
withUlimits |
ExtraHost |
withExtraHosts |
ResourcesQuota |
withResourcesQuota |
DirectoryToCopy |
withCopyDirectoriesToContainer, copyDirectoriesToContainer |
ArchiveToCopy |
withCopyArchivesToContainer |
BuildArgs |
GenericContainerBuilder.withBuildArgs |
HttpWaitStrategy |
return type of Wait.forHttp |
CompositeWaitStrategy |
return type of Wait.forAll |
ShellWaitStrategy |
return type of Wait.forSuccessfulCommand |
StartedGenericContainer |
return type of StartedDockerComposeEnvironment.getContainer |
ComposeDownOptions |
StartedDockerComposeEnvironment.down, StoppedDockerComposeEnvironment.down |
ComposeOptions |
DockerComposeEnvironment.withClientOptions |
Reaper |
return type of getReaper |
Ports, HostPortBindings, HealthCheckStatus, NetworkSettings |
fields of the exported InspectResult |
AbstractWaitStrategy is not exported either. A custom wait strategy that is not a StartupCheckStrategy has to implement WaitStrategy directly and re-implement the timeout bookkeeping (withStartupTimeout, isStartupTimeoutSet, getStartupTimeout).
Expected
Every type that appears in an exported signature is exported from index.ts. AGENTS.md already asks for this when a type becomes part of the public API.
Where
packages/testcontainers/src/index.ts.
Notes
getContainercould return theStartedTestContainerinterface instead of exporting the concreteStartedGenericContainerclass.npm run knipdoes not catch these, because the types are used by other files.- A check that fails when an exported signature references an unexported type would stop this recurring.
Dependencies
- Nothing blocks this. It can start now.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.6k
- Fork
- 274
- Merge trung bình
- 1 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 44
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của testcontainers/testcontainers-node
-
enhancement minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
testcontainers/testcontainers-node#1539 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
testcontainers/testcontainers-node#1533 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
testcontainers/testcontainers-node#1531 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
testcontainers/testcontainers-node#1529 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug patch
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
testcontainers/testcontainers-node#1526 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của testcontainers/testcontainers-node
Issue tương tự
-
Add: VIVE TVĐang mởapproved check:passed streams:add
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
iptv-org/iptv#55293 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Fission-AI/OpenSpec#2084 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Contrib indemnité de départ à la retraite : faire le pont avec le simulateur sur la page génériqueĐang mởP1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
SocialGouv/code-du-travail-numerique#7561 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
beginner bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
hiero-ledger/hiero-sdk-js#4517 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
kubernetes-sigs/headlamp#7950 ·
Maintainer thường phản hồi trong vòng 3 ngày