config
DeprecatedOptionβ
Enumeration Membersβ
DEFAULTβ
DEFAULT: "default";
Defined inβ
packages/core/src/config.ts:43
GROUPβ
GROUP: "group";
Defined inβ
packages/core/src/config.ts:44
SKIPβ
SKIP: "skip";
Defined inβ
packages/core/src/config.ts:45
DiffMethodβ
Enumeration Membersβ
FORCEβ
FORCE: "FORCE";
Defined inβ
packages/core/src/config.ts:39
NONEβ
NONE: "NONE";
Defined inβ
packages/core/src/config.ts:38
TypeHierarchyβ
Enumeration Membersβ
APIβ
API: "api";
Defined inβ
packages/core/src/config.ts:32
ENTITYβ
ENTITY: "entity";
Defined inβ
packages/core/src/config.ts:33
FLATβ
FLAT: "flat";
Defined inβ
packages/core/src/config.ts:34
ASSET_HOMEPAGE_LOCATIONβ
const ASSET_HOMEPAGE_LOCATION: string;
Defined inβ
packages/core/src/config.ts:50
DEFAULT_HIERARCHYβ
const DEFAULT_HIERARCHY: object;
Type declarationβ
apiβ
api: object = {};
Defined inβ
packages/core/src/config.ts:57
DEFAULT_OPTIONSβ
const DEFAULT_OPTIONS: Readonly<Pick<ConfigOptions, "customDirective" | "groupByDirective" | "loaders"> & Required<Omit<ConfigOptions, "customDirective" | "groupByDirective" | "loaders" | "printTypeOptions">>> & object;
Type declarationβ
printTypeOptionsβ
printTypeOptions: Required<Omit<ConfigPrintTypeOptions, "hierarchy">> & object;
Type declarationβ
hierarchyβ
hierarchy: Required<Pick<TypeHierarchyObjectType, API>>;
Defined inβ
packages/core/src/config.ts:59
DOCS_URLβ
const DOCS_URL: "https://graphql-markdown.dev/docs";
Defined inβ
packages/core/src/config.ts:48
PACKAGE_NAMEβ
const PACKAGE_NAME: "@graphql-markdown/docusaurus";
Defined inβ
packages/core/src/config.ts:49
buildConfig()β
function buildConfig(
configFileOpts,
cliOpts?,
id?): Promise<Options>
Parametersβ
configFileOptsβ
Maybe
<ConfigOptions
>
cliOpts?β
Maybe
<CliOptions
>
id?β
Maybe
<string
> = "default"
Returnsβ
Promise
<Options
>
Defined inβ
packages/core/src/config.ts:432
getCustomDirectives()β
function getCustomDirectives(customDirectiveOptions, skipDocDirective?): Maybe<CustomDirective>
Parametersβ
customDirectiveOptionsβ
Maybe
<CustomDirective
>
skipDocDirective?β
Maybe
<DirectiveName
[]>
Returnsβ
Maybe
<CustomDirective
>
Defined inβ
packages/core/src/config.ts:191
getDiffMethod()β
function getDiffMethod(diff, force): TypeDiffMethod
Parametersβ
diffβ
TypeDiffMethod
forceβ
boolean
= false
Returnsβ
TypeDiffMethod
Defined inβ
packages/core/src/config.ts:224
getDocDirective()β
function getDocDirective(name): DirectiveName
Parametersβ
nameβ
Maybe
<DirectiveName
>
Returnsβ
DirectiveName
Defined inβ
packages/core/src/config.ts:107
getDocOptions()β
function getDocOptions(cliOpts?, configOptions?): Required<ConfigDocOptions>
Parametersβ
cliOpts?β
Maybe
<CliOptions
& DeprecatedCliOptions
>
configOptions?β
Maybe
<ConfigDocOptions
& DeprecatedConfigDocOptions
>
Returnsβ
Required
<ConfigDocOptions
>
Defined inβ
packages/core/src/config.ts:274
getOnlyDocDirectives()β
function getOnlyDocDirectives(cliOpts, configFileOpts): DirectiveName[]
Parametersβ
cliOptsβ
Maybe
<CliOptions
>
configFileOptsβ
Maybe
<Pick
<ConfigOptions
, "onlyDocDirective"
>>
Returnsβ
DirectiveName
[]
Defined inβ
packages/core/src/config.ts:123
getPrintTypeOptions()β
function getPrintTypeOptions(cliOpts, configOptions): Required<ConfigPrintTypeOptions>
Parametersβ
cliOptsβ
Maybe
<CliOptions
& DeprecatedCliOptions
>
configOptionsβ
Maybe
<ConfigPrintTypeOptions
& DeprecatedConfigPrintTypeOptions
>
Returnsβ
Required
<ConfigPrintTypeOptions
>
Defined inβ
packages/core/src/config.ts:367
getSkipDocDirectives()β
function getSkipDocDirectives(cliOpts, configFileOpts): DirectiveName[]
Parametersβ
cliOptsβ
Maybe
<CliOptions
>
configFileOptsβ
Maybe
<Pick
<ConfigOptions
, "printTypeOptions"
| "skipDocDirective"
>>
Returnsβ
DirectiveName
[]
Defined inβ
packages/core/src/config.ts:139
getTypeHierarchyOption()β
function getTypeHierarchyOption(cliOption?, configOption?): Maybe<Partial<Record<TypeHierarchyValueType, TypeHierarchyTypeOptions>>>
Parametersβ
cliOption?β
Maybe
<TypeHierarchyValueType
>
configOption?β
Maybe
<TypeHierarchyType
>
Returnsβ
Maybe
<Partial
<Record
<TypeHierarchyValueType
, TypeHierarchyTypeOptions
>>>
Defined inβ
packages/core/src/config.ts:291
getVisibilityDirectives()β
function getVisibilityDirectives(cliOpts, configFileOpts): object
Parametersβ
cliOptsβ
Maybe
<CliOptions
>
configFileOptsβ
Maybe
<Pick
<ConfigOptions
, "printTypeOptions"
| "skipDocDirective"
| "onlyDocDirective"
>>
Returnsβ
object
onlyDocDirectiveβ
onlyDocDirective: DirectiveName[];
skipDocDirectiveβ
skipDocDirective: DirectiveName[];
Defined inβ
packages/core/src/config.ts:166
parseDeprecatedDocOptions()β
function parseDeprecatedDocOptions(cliOpts, configOptions): Partial<{
hide_table_of_contents: boolean;
pagination_next: null;
pagination_prev: null;
}>
Parametersβ
cliOptsβ
Maybe
<DeprecatedCliOptions
>
configOptionsβ
Maybe
<DeprecatedConfigDocOptions
>
Returnsβ
Partial
<{
hide_table_of_contents
: boolean
;
pagination_next
: null
;
pagination_prev
: null
;
}>
Defined inβ
packages/core/src/config.ts:233
parseDeprecatedPrintTypeOptions()β
function parseDeprecatedPrintTypeOptions(cliOpts, configOptions): Partial<{
hierarchy: TypeHierarchyType;
}>
Parametersβ
cliOptsβ
Maybe
<DeprecatedCliOptions
>
configOptionsβ
Maybe
<DeprecatedConfigPrintTypeOptions
>
Returnsβ
Partial
<{
hierarchy
: TypeHierarchyType
;
}>
Defined inβ
packages/core/src/config.ts:335
parseGroupByOption()β
function parseGroupByOption(groupOptions): Maybe<GroupByDirectiveOptions>
Parametersβ
groupOptionsβ
unknown
Returnsβ
Maybe
<GroupByDirectiveOptions
>
Defined inβ
packages/core/src/config.ts:403