m3-academy-template-vtexio/custom/react/typings/storefront.d.ts
Caroline Moran f2a03c53ae first commit
2022-08-11 09:06:07 -04:00

16 lines
399 B
TypeScript

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
}
}