Skip to content

chore: remove unused exported types (3 exports) #281

@sjnims

Description

@sjnims

Description

Dead code analysis (knip) identified 3 exported types that are defined and re-exported but never imported anywhere in the codebase.

Findings

Export Type Location Notes
ValidatedEvalConfig type src/config/schema.ts:321 Zod-inferred config type, re-exported from config/index.ts
CreateRunOptions interface src/state/types.ts:75 State creation options, re-exported from state/index.ts
ResumeOptions interface src/state/types.ts:84 State resume options, re-exported from state/index.ts

Note: The ResumeOptions in src/cli/options.ts:23 is a different interface with the same name and IS used by the CLI resume command.

Verification

# Confirm these are unused
npm run knip

Suggested Fix

  1. Remove ValidatedEvalConfig export from src/config/schema.ts (or keep if useful for external consumers)
  2. Remove CreateRunOptions interface from src/state/types.ts
  3. Remove ResumeOptions interface from src/state/types.ts
  4. Remove corresponding re-exports from barrel files (config/index.ts, state/index.ts)

Priority

Low - Dead code cleanup, no functional impact.

Related


🤖 Created with Claude Code

Metadata

Metadata

Assignees

Labels

choreMaintenance tasks (dependencies, CI, tooling)component:configConfiguration loading (src/config/)component:stateResume and checkpoint management (src/state/)component:typesTypeScript interfaces (src/types/)effort:small< 1 hourpriority:lowNice to have

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions