Skip to content

Commit

Permalink
Export more types (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbents authored Aug 18, 2023
1 parent 9bff2ce commit 4b67f2b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
],
"scripts": {
"build": "run-s build:*",
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:types": "tsc -p tsconfig.types.json",
"build:esm": "tsc -p tsconfig.esm.json --stripInternal",
"build:cjs": "tsc -p tsconfig.cjs.json --stripInternal",
"build:types": "tsc -p tsconfig.types.json --stripInternal",
"prebuild": "rimraf esm cjs types",
"test": "jest",
"lint": "eslint --ext ts --ext js src/",
Expand Down
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,21 @@ export {
Locale,
RevolutCheckoutCardField,
RevolutCheckoutInstance,
RevolutPaymentsModuleOptions,
RevolutPaymentsModuleInstance,
RevolutUpsellModuleInstance,
RevolutUpsellModuleOptions,
RevolutPayEvents,
RevolutPayEventPayload,
UpsellModuleCardGatewayBannerInstance,
UpsellModulePromotionalBannerInstance,
UpsellModuleEnrollmentConfirmationBannerInstance,
Mode,
WidgetPaymentsRevolutPayOptions,
WidgetPaymentRequestInstance,
WidgetUpsellCardGatewayBannerOptions,
WidgetUpsellPromotionalBannerOptions,
WidgetUpsellEnrollmentConfirmationBannerOptions,
} from './types'

export {
Expand Down
3 changes: 1 addition & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,6 @@ export interface RevolutCheckoutInstance {
payments: (
option: RevolutPaymentsModuleOptions
) => RevolutPaymentsModuleInstance
/** The upsell SDK module */
upsell: (option: RevolutUpsellModuleOptions) => RevolutUpsellModuleInstance
}

export interface RevolutPaymentsModuleInstance {
Expand Down Expand Up @@ -759,6 +757,7 @@ export interface RevolutUpsellModuleOptions {
locale?: string | 'auto'
}

/** @internal */
export interface RevolutCheckout {
(token: string): RevolutCheckoutInstance
payments: (
Expand Down

0 comments on commit 4b67f2b

Please sign in to comment.