The Stripe docs have the following code snippet to add a stripe-pricing-table
element:
import * as React from react ;
// If using TypeScript, add the following snippet to your file as well.
declare global {
namespace JSX {
interface IntrinsicElements {
stripe-pricing-table : React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
}
}
}
However, I get the following eslint error: ES2015 module syntax is preferred over namespaces
. Is there a way for to me resolve this error without resorting to // eslint-disable-next-line @typescript-eslint/no-namespace
?