UNPKG

@asyncapi/react-component

Version:

A React component for AsyncAPI specification.

35 lines 1.02 kB
/// <reference types="react" /> import { ExtensionComponentProps } from '../types'; export interface ConfigInterface { schemaID?: string; show?: ShowConfig; expand?: ExpandConfig; sidebar?: SideBarConfig; parserOptions?: any; publishLabel?: string; subscribeLabel?: string; sendLabel?: string; receiveLabel?: string; requestLabel?: string; replyLabel?: string; extensions?: Record<string, React.ComponentType<ExtensionComponentProps>>; } export interface ShowConfig { sidebar?: boolean; info?: boolean; servers?: boolean; operations?: boolean; messages?: boolean; messageExamples?: boolean; schemas?: boolean; errors?: boolean; } export interface ExpandConfig { messageExamples?: boolean; } export interface SideBarConfig { showServers?: 'byDefault' | 'bySpecTags' | 'byServersTags'; showOperations?: 'byDefault' | 'bySpecTags' | 'byOperationsTags'; useChannelAddressAsIdentifier?: boolean; } //# sourceMappingURL=config.d.ts.map