diff --git a/package.json b/package.json
index 00bb24f1..51a2ef50 100644
--- a/package.json
+++ b/package.json
@@ -7,12 +7,24 @@
"module": "dist/stripe.mjs",
"exports": {
".": {
- "import": "./dist/stripe.mjs",
- "default": "./dist/stripe.js"
+ "import": {
+ "types": "./types/index.d.ts",
+ "default": "./dist/stripe.mjs"
+ },
+ "require": {
+ "types": "./dist/index.d.ts",
+ "default": "./dist/stripe.js"
+ }
},
"./pure": {
- "import": "./dist/pure.mjs",
- "default": "./dist/pure.js"
+ "import": {
+ "types": "./types/pure.d.ts",
+ "default": "./dist/pure.mjs"
+ },
+ "require": {
+ "types": "./dist/pure.d.ts",
+ "default": "./dist/pure.js"
+ }
}
},
"jsnext:main": "dist/stripe.mjs",
diff --git a/types/pure.d.ts b/types/pure.d.ts
index c0c443cd..ac13eaf7 100644
--- a/types/pure.d.ts
+++ b/types/pure.d.ts
@@ -1,4 +1,4 @@
-///
+///
export const loadStripe: typeof import('@stripe/stripe-js').loadStripe & {
setLoadParameters: (params: {advancedFraudSignals: boolean}) => void;