m3-academy-template-vtexio/custom/react/typings/storefront.d.ts

16 lines
399 B
TypeScript
Raw Permalink Normal View History

2022-08-11 13:06:07 +00:00
import { FunctionComponent } from "react";
declare global {
interface StorefrontFunctionComponent<P = GenericObject>
extends FunctionComponent<P> {
getSchema?(props: P): GenericObject
schema?: GenericObject
}
interface StorefrontComponent<P = GenericObject, S = GenericObject>
extends Component<P, S> {
getSchema?(props: P): GenericObject
schema: GenericObject
}
}