From 5a474dd4ddc0ade21204e0c0dc2201d2c9c81208 Mon Sep 17 00:00:00 2001 From: devartes Date: Tue, 7 Feb 2023 06:25:15 -0300 Subject: [PATCH] feat: adicionando storefront.d.ts --- react/typings/storefront.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 react/typings/storefront.d.ts 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 + } +}