Skip to content

fix(types): correct intersection and reflection AST resolution#164

Open
moshams272 wants to merge 1 commit into
webpack:mainfrom
moshams272:fix/partials-types
Open

fix(types): correct intersection and reflection AST resolution#164
moshams272 wants to merge 1 commit into
webpack:mainfrom
moshams272:fix/partials-types

Conversation

@moshams272

Copy link
Copy Markdown
Contributor

Summary
Correcting the resolution types:

  • Intersection Types: Separated intersection from union. Intersection types (A & B) were previously being rendered as unions (A | B). They now correctly use the & separator.
  • Reflection Types: Updated the reflection case to check for type.declaration?.signatures?.length. This correctly distinguishes callback functions (Function) from complex configuration objects (object). Previously, all reflections were blindly mapped to 'object', causing inaccurate documentation for function properties.

@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-doc-kit Ready Ready Preview, Comment Jul 3, 2026 6:17pm

Request Review

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.

2 participants