Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/react-components/specs/utils/public-api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import * as barrel from "../../src/index"
* `dist` entirely. Its own spec still passes, because specs import from the
* source file. This guard fails as soon as a component module exports
* something the root barrel does not.
*
* Runtime exports only: types vanish at runtime, and `components/utils` is
* skipped below, so the types public props rely on are listed by hand in
* `src/index.ts`.
*/

// Internal on purpose: gateways are picked by `PaymentGateway` from the
Expand Down
3 changes: 3 additions & 0 deletions packages/react-components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ export type { PaypalConfig } from "#components/payment_source/PaypalPayment"
export type { StripeConfig } from "#components/payment_source/StripePayment"
export type { WireTransferConfig } from "#components/payment_source/WireTransferPayment"
export type { PaymentMethodConfig, PaymentResource } from "#reducers/PaymentMethodReducer"
export type { AddressCardsTemplateChildren } from "#components/utils/AddressCardsTemplate"
export type { BaseInputProps } from "#components/utils/BaseInput"
export type { BaseFieldProps } from "#components/utils/BaseField"
export type { CustomerCardsTemplateChildren } from "#components/utils/PaymentCardsTemplate"
export type { TGenericChildrenProps, TResources } from "#components/utils/GenericFieldComponent"
export type { Country, States } from "#utils/countryStateCity"
export type { TypeAccepted } from "#utils/getLineItemsCount"
Loading