UNPKG

@s1am0nd/asyncapi-react-component

Version:

A React component for AsyncAPI specification.

22 lines 776 B
import { Component } from 'react'; import { AsyncAPIDocument } from '@asyncapi/parser'; import { ErrorObject, PropsSchema } from '../../types'; import { ConfigInterface } from '../../config'; export interface AsyncApiProps { schema: PropsSchema; config?: Partial<ConfigInterface>; } interface AsyncAPIState { asyncapi?: AsyncAPIDocument; error?: ErrorObject; } declare class AsyncApiComponent extends Component<AsyncApiProps, AsyncAPIState> { state: AsyncAPIState; constructor(props: AsyncApiProps); componentDidMount(): Promise<void>; componentDidUpdate(prevProps: AsyncApiProps): Promise<void>; render(): JSX.Element; private parseSchema; } export default AsyncApiComponent; //# sourceMappingURL=AsyncApi.d.ts.map