UNPKG

@stoplight/elements-core

Version:
18 lines (17 loc) • 566 B
import { IHttpOperationRequestBody } from '@stoplight/types'; export interface BodyProps { body: IHttpOperationRequestBody; onChange?: (requestBodyIndex: number) => void; isHttpWebhookOperation?: boolean; disableProps?: Array<{ location: string; paths: Array<{ path: string; }>; }>; } export declare const isBodyEmpty: (body?: BodyProps['body']) => boolean; export declare const Body: { ({ body, onChange, isHttpWebhookOperation, disableProps }: BodyProps): JSX.Element | null; displayName: string; };