@commercelayer/react-components
Version:
The Official Commerce Layer React Components
11 lines (10 loc) • 592 B
TypeScript
import type { ConditionalElement } from '../../typings/index';
import { type TGenericChildrenProps, type TResources } from '../utils/GenericFieldComponent';
import type { JSX } from "react";
type StockTransferFieldChildrenProps = TGenericChildrenProps<TResources['StockTransfer']>;
type TCondition = ConditionalElement<Exclude<TResources['StockTransfer'], 'resource'>>;
type Props = {
children?: (props: StockTransferFieldChildrenProps) => JSX.Element;
} & TCondition;
export declare function StockTransferField<P extends Props>(props: P): JSX.Element;
export default StockTransferField;