Skip to content

test: guard the declaration shape that keeps tree schemas re-exportable - #67

Merged
Mearman merged 1 commit into
mainfrom
fix/62-predicate-schema-declaration-3
Sep 29, 2026
Merged

Mearman merged 1 commit into
mainfrom
fix/62-predicate-schema-declaration-3

Conversation

@Mearman

@Mearman Mearman commented Sep 29, 2026

Copy link
Copy Markdown
Member

The TS7056 failure reported in this issue depended on how the declaration bundler emitted dist/tree.d.ts: 1.6.2 (tsdown 0.22) wrote bare declare const X plus a trailing export { ... } list, and a consumer re-exporting z.array(PredicateNodeSchema) then failed. Since the tsdown 0.23 bump (1.6.3) the declarations are export declare const X and the unannotated re-export builds.

This adds a smoke test asserting that dist/tree.d.ts and dist/tree.d.cts export both schemas in place, with no bare top-level declarations and no trailing export list, so a bundler change that brings the old shape back fails here rather than in a consumer.

Fixes #62

A consumer re-exporting z.array(PredicateNodeSchema) without an annotation
hit TS7056 when the declaration bundler emitted bare declarations plus a
trailing export list. Assert every top-level declaration in the built
tree declarations is exported in place.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 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
🔒 Security Review ✅ Completed 2026-09-29T22:59:41.992623Z 1f5b27e 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.

@Mearman
Mearman merged commit e64ff50 into main Sep 29, 2026
14 checks passed
@Mearman
Mearman deleted the fix/62-predicate-schema-declaration-3 branch September 29, 2026 23:12
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in trilean@1.7.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PredicateNodeSchema triggers TS7056 in declaration-file generators without an explicit type annotation

1 participant