@graphiql/plugin-doc-explorer
Version:
23 lines (22 loc) • 670 B
TypeScript
import { FC } from 'react';
import { GraphQLArgument } from 'graphql';
declare type ArgumentProps = {
/**
* The argument that should be rendered.
*/
arg: GraphQLArgument;
/**
* Toggle if the default value for the argument is shown (if there is one)
* @default false
*/
showDefaultValue?: boolean;
/**
* Toggle whether to render the whole argument including description and
* deprecation reason (`false`) or to just render the argument name, type,
* and default value in a single line (`true`).
* @default false
*/
inline?: boolean;
};
export declare const Argument: FC<ArgumentProps>;
export {};