diff --git a/react/typings/storefront.d.ts b/react/typings/storefront.d.ts new file mode 100644 index 0000000..4689dc6 --- /dev/null +++ b/react/typings/storefront.d.ts @@ -0,0 +1,15 @@ +import { FunctionComponent } from "react"; + +declare global { + interface StorefrontFunctionComponent
+ extends FunctionComponent
{ + getSchema?(props: P): GenericObject + schema?: GenericObject + } + + interface StorefrontComponent
+ extends Component
{ + getSchema?(props: P): GenericObject + schema: GenericObject + } +}