forked from M3-Academy/challenge-vtex-io
16 lines
399 B
TypeScript
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
|
||
|
}
|
||
|
}
|