Skip to content

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Jul 1, 2025

Closes #305

Applied changes based on Issue #305.

I’ve converted all purely type-based imports to import type while leaving runtime imports intact:

  • src/api/openai.ts: split out ClientOptions and ActionConfig as type-only imports.
  • src/client/codex.ts: prefixed ActionConfig import with type.
  • src/github/action.ts: prefixed ActionConfig and ProcessedEvent imports with type.
  • src/github/event.ts: split AgentEvent out as a type-only import and prefixed ActionConfig with type, leaving runtime helpers.
  • src/security/security.ts: prefixed ActionConfig and Octokit imports with type.

These changes ensure TS will strip them from the emitted JS while preserving runtime behavior.

@github-actions github-actions bot mentioned this pull request Jul 1, 2025
@YiweiShen YiweiShen merged commit 9e2ce46 into main Jul 1, 2025
@YiweiShen YiweiShen deleted the codez-styles-305-style-use-type-only-imports-3024740538 branch July 1, 2025 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use type-only imports

1 participant