We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 857a215 commit 3c9e2f6Copy full SHA for 3c9e2f6
tests/types/index.ts
@@ -39,6 +39,15 @@ import {
39
const stripePromise: Promise<Stripe | null> = loadStripe('');
40
const stripeConnectPromise = loadStripe('', {stripeAccount: '', locale: 'en'});
41
42
+type TypeModule = typeof import('@stripe/stripe-js');
43
+type SrcModule = typeof import('../../src/index');
44
+
45
+// Makes sure that the implementation matches the type definitions
46
+// Checking for compatibility both ways ensures that the exports
47
+// are equivalent with nothing missing on either side.
48
+import('../../src/index').then((srcModule: TypeModule) => {});
49
+import('@stripe/stripe-js').then((typeModule: SrcModule) => {});
50
51
declare const stripe: Stripe;
52
53
const OPEN_SANS: CssFontSource = {
0 commit comments