Skip to content
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

Export more types #72

Merged
merged 1 commit into from
Aug 18, 2023
Merged
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
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
atsikov marked this conversation as resolved.
Show resolved Hide resolved
}

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