Skip to content

fix: hide variant prop from public InstallIntegrationProps type#1566

Merged
dionlow merged 1 commit intomainfrom
fix/hide-variant-from-public-api
Mar 26, 2026
Merged

fix: hide variant prop from public InstallIntegrationProps type#1566
dionlow merged 1 commit intomainfrom
fix/hide-variant-from-public-api

Conversation

@dionlow
Copy link
Copy Markdown
Contributor

@dionlow dionlow commented Mar 26, 2026

Summary

hidden prop didn't stop the IDE from detecting. Updated types to have an internal only type.

  • Split InstallIntegrationProps into a public type (exported, without variant) and an internal InstallIntegrationInternalProps (not exported, extends public with variant?: "wizard")
  • The public InstallIntegration component signature uses InstallIntegrationProps, so variant no longer appears in generated .d.ts declarations
  • Also explicitly exports InstallIntegrationProps type from the Configure barrel for consumer use

Test plan

  • yarn build succeeds
  • Verified variant does not appear in build/*.d.ts
  • Verified InstallIntegrationProps is exported in build/*.d.ts
  • Confirm variant="wizard" still works at runtime when passed internally

ts throws error

Screenshot 2026-03-25 at 5 06 38 PM

add ts exception when using

Screenshot 2026-03-25 at 5 08 14 PM

Split InstallIntegrationProps into a public type (without variant) and
an internal InstallIntegrationInternalProps (with variant?: "wizard").
Only the public type is exported, so variant no longer appears in the
generated .d.ts declarations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dionlow dionlow requested review from a team and jlimatampersand and removed request for a team March 26, 2026 00:13
@dionlow dionlow merged commit a882b38 into main Mar 26, 2026
4 checks passed
@dionlow dionlow deleted the fix/hide-variant-from-public-api branch March 26, 2026 17:07
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