Skip to content

fix(types): preserve named properties in processed options - #102

Merged
chenjiahan merged 2 commits into
mainfrom
chenjiahan/fix-processed-options-types
Sep 20, 2026
Merged

chenjiahan merged 2 commits into
mainfrom
chenjiahan/fix-processed-options-types

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

In v6.1.10, ProcessedOptions loses named property types because Omit operates on Options, which has a string index signature. This causes options such as title, chunks, and excludeChunks to resolve to any and fail downstream type-aware lint checks.

Use key remapping to preserve these types while keeping minify optional and supporting custom template parameters. Add type regression assertions verified with TypeScript 6 and 7.

Related Links

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-20T07:34:38.344209Z 17cfb31 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chenjiahan
chenjiahan merged commit 272c72c into main Sep 20, 2026
6 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/fix-processed-options-types branch September 20, 2026 07: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.

1 participant