printer
Printerβ
Implementsβ
IPrinter
Constructorsβ
new Printer()β
new Printer(): Printer
Returnsβ
Propertiesβ
optionsβ
static options: Readonly<Maybe<PrintTypeOptions>>;
Defined inβ
printer.ts:66
printCustomDirectives()β
readonly static printCustomDirectives: (type, options) => string;
Parametersβ
β’ type: unknown
β’ options: PrintTypeOptions
Returnsβ
string
Defined inβ
printer.ts:70
printCustomTags()β
readonly static printCustomTags: (type, options) => string | MDXString;
Parametersβ
β’ type: unknown
β’ options: PrintTypeOptions
Returnsβ
string
| MDXString
Defined inβ
printer.ts:72
printDescription()β
readonly static printDescription: (type, options?, noText?) => string | MDXString;
Parametersβ
β’ type: unknown
β’ options?: PrintTypeOptions
β’ noText?: string
Returnsβ
string
| MDXString
Defined inβ
printer.ts:68
Methodsβ
init()β
static init(
schema,
baseURL,
linkRoot,
__namedParameters): void
Parametersβ
β’ schema: Maybe
<GraphQLSchema
>
β’ baseURL: Maybe
<string
> = "schema"
β’ linkRoot: Maybe
<string
> = "/"
β’ __namedParameters = ...
β’ __namedParameters.customDirectives?: CustomDirectiveMap
β’ __namedParameters.deprecated?: TypeDeprecatedOption
β’ __namedParameters.groups?: Partial
<Record
<SchemaEntity
, Record
<string
, Maybe
<string
>>>>
β’ __namedParameters.metatags?: Record
<string
, string
>[]
β’ __namedParameters.onlyDocDirectives?: GraphQLDirective
[]
β’ __namedParameters.printTypeOptions?: PrinterConfigPrintTypeOptions
β’ __namedParameters.skipDocDirectives?: GraphQLDirective
[]
Returnsβ
void
Defined inβ
printer.ts:74
printCode()β
readonly static printCode(type, options): string
Parametersβ
β’ type: unknown
β’ options: PrintTypeOptions
Returnsβ
string
Defined inβ
printer.ts:141
printExample()β
readonly static printExample(type, options): string
Parametersβ
β’ type: unknown
β’ options: PrintTypeOptions
Returnsβ
string
Defined inβ
printer.ts:186
printHeader()β
readonly static printHeader(
id,
title,
options): string
Parametersβ
β’ id: string
β’ title: string
β’ options: PrintTypeOptions
Returnsβ
string
Defined inβ
printer.ts:131
printMetaTags()β
readonly static printMetaTags(_type, __namedParameters): string | MDXString
Parametersβ
β’ _type: unknown
β’ __namedParameters: PrintTypeOptions
Returnsβ
string
| MDXString
Defined inβ
printer.ts:246
printRelations()β
readonly static printRelations(type, options): string | MDXString
Parametersβ
β’ type: unknown
β’ options: PrintTypeOptions
Returnsβ
string
| MDXString
Defined inβ
printer.ts:236
printType()β
readonly static printType(
name,
type,
options?): Maybe<MDXString>
Parametersβ
β’ name: Maybe
<string
>
β’ type: unknown
β’ options?: Maybe
<Partial
<PrintTypeOptions
>>
Returnsβ
Maybe
<MDXString
>
Defined inβ
printer.ts:265
printTypeMetadata()β
readonly static printTypeMetadata(type, options): string | MDXString
Parametersβ
β’ type: unknown
β’ options: PrintTypeOptions
Returnsβ
string
| MDXString
Defined inβ
printer.ts:207