Skip to content

[Export Audit] Unused exported interfaces in src/types.ts: DockerService, DockerNetwork #2421

@github-actions

Description

@github-actions

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 ·

  • expires on Jun 2, 2026, 6:59 AM UTC

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions