API Surface Issue
Category
Unused export
Summary
- File:
src/types.ts
- Symbols:
DockerService (line 1328), DockerNetwork (line 1635)
- Issue: Two interfaces in
src/types.ts are exported but never imported outside the file. They are used only internally within the DockerComposeConfig type structure defined in the same file.
Evidence
$ grep -rn "DockerService\|DockerNetwork" src/ tests/ --include="*.ts"
src/types.ts:1291: [key: string]: DockerService;
src/types.ts:1304: [key: string]: DockerNetwork;
src/types.ts:1328:export interface DockerService { ... }
src/types.ts:1635:export interface DockerNetwork { ... }
No file outside src/types.ts imports DockerService or DockerNetwork.
Recommended Fix
Remove the export keyword from both interfaces since they are internal sub-types of DockerComposeConfig:
interface DockerService { ... }
interface DockerNetwork { ... }
Impact
- Dead code risk: Medium — Internal Docker Compose schema types should not be part of the public API as they may change with Docker Compose spec updates.
- Maintenance burden: Low
Detected by Export Audit workflow. Triggered by push to main on 2026-05-03
Generated by API Surface & Export Audit · ● 545.7K · ◷
API Surface Issue
Category
Unused export
Summary
src/types.tsDockerService(line 1328),DockerNetwork(line 1635)src/types.tsare exported but never imported outside the file. They are used only internally within theDockerComposeConfigtype structure defined in the same file.Evidence
No file outside
src/types.tsimportsDockerServiceorDockerNetwork.Recommended Fix
Remove the
exportkeyword from both interfaces since they are internal sub-types ofDockerComposeConfig:Impact
Detected by Export Audit workflow. Triggered by push to main on 2026-05-03