@asyncapi/react-component
Version:
A React component for AsyncAPI specification.
23 lines • 822 B
TypeScript
import React, { Component } from 'react';
import { AsyncAPIDocumentInterface } from '@asyncapi/parser';
import { ErrorObject, PropsSchema } from '../../types';
import { ConfigInterface } from '../../config';
export interface AsyncApiProps {
schema: PropsSchema;
config?: Partial<ConfigInterface>;
error?: ErrorObject;
}
interface AsyncAPIState {
asyncapi?: AsyncAPIDocumentInterface;
error?: ErrorObject;
}
declare class AsyncApiComponent extends Component<AsyncApiProps, AsyncAPIState> {
state: AsyncAPIState;
constructor(props: AsyncApiProps);
componentDidMount(): void;
componentDidUpdate(prevProps: AsyncApiProps): void;
render(): false | React.JSX.Element | null | undefined;
private updateState;
}
export default AsyncApiComponent;
//# sourceMappingURL=Standalone.d.ts.map