New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v6 - Exporting types from root level #2405
Conversation
|
size-limit report 📦
|
Size Change: +387 B (0%) Total Size: 1.08 MB
ℹ️ View Unchanged
|
SonarCloud Quality Gate failed. 1 Bug 78.2% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Summary
{PaymentMethodName}Configuration}
.(Ex: CardConfiguration, PayPalConfiguration, ..) So all exposed configs follow same patterntypes.ts
file on the root level (src/types.ts
) which exports the typessrc/components/types.ts
which re-export types from the ComponentsCheckoutSession
types were moved to CheckoutSessions folder,PaymentMethodsConfiguration
type was moved to Dropin folder, etc.)components/internal
folder . Their types were also moved to their respectivetypes.ts
fileBrief explanation of the Types generation pipeline:
tsc
runs and emit all declarations on/dist/temp-types
folder . It emits according to the project structure, meaning that we have files spread across different foldersrollup-plugin-ts
plugin , which parses the generated files and bundle everything into a single filetemp-types
folder is deletedUse case:
Tested scenarios
Fixed issue:
#363