challenge-vtex-io-eleonora-otz/react/typings/storefront.d.ts

16 lines
399 B
TypeScript
Raw Permalink Normal View History

2023-01-30 15:09:57 +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
}
}