Skip to main content

printer

Printer​

Implements​

  • IPrinter

Constructors​

new Printer()​

new Printer(): Printer
Returns​

Printer

Properties​

options​

static options: Readonly<Maybe<PrintTypeOptions>>;
Defined in​

printer.ts:67

printCustomDirectives()​

readonly static printCustomDirectives: (type, options) => string;
Parameters​
type​

unknown

options​

PrintTypeOptions

Returns​

string

Defined in​

printer.ts:71

printCustomTags()​

readonly static printCustomTags: (type, options) => string | MDXString;
Parameters​
type​

unknown

options​

PrintTypeOptions

Returns​

string | MDXString

Defined in​

printer.ts:73

printDescription()​

readonly static printDescription: (type, options?, noText?) => string | MDXString;
Parameters​
type​

unknown

options?​

PrintTypeOptions

noText?​

string

Returns​

string | MDXString

Defined in​

printer.ts:69

Methods​

init()​

static init(
schema,
baseURL,
linkRoot,
__namedParameters): void
Parameters​
schema​

Maybe<GraphQLSchema>

baseURL​

Maybe<string> = "schema"

linkRoot​

Maybe<string> = "/"

__namedParameters​
customDirectives​

CustomDirectiveMap

deprecated​

TypeDeprecatedOption

groups​

Partial<Record<SchemaEntity, Record<string, Maybe<string>>>>

metatags​

Record<string, string>[]

onlyDocDirectives​

GraphQLDirective[]

printTypeOptions​

PrinterConfigPrintTypeOptions

skipDocDirectives​

GraphQLDirective[]

Returns​

void

Defined in​

printer.ts:75

printCode()​

readonly static printCode(type, options): string
Parameters​
type​

unknown

options​

PrintTypeOptions

Returns​

string

Defined in​

printer.ts:142

printExample()​

readonly static printExample(type, options): string
Parameters​
type​

unknown

options​

PrintTypeOptions

Returns​

string

Defined in​

printer.ts:187

printHeader()​

readonly static printHeader(
id,
title,
options): string
Parameters​
id​

string

title​

string

options​

PrintTypeOptions

Returns​

string

Defined in​

printer.ts:132

printMetaTags()​

readonly static printMetaTags(_type, __namedParameters): string | MDXString
Parameters​
_type​

unknown

__namedParameters​

PrintTypeOptions

Returns​

string | MDXString

Defined in​

printer.ts:247

printRelations()​

readonly static printRelations(type, options): string | MDXString
Parameters​
type​

unknown

options​

PrintTypeOptions

Returns​

string | MDXString

Defined in​

printer.ts:237

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:266

printTypeMetadata()​

readonly static printTypeMetadata(type, options): string | MDXString
Parameters​
type​

unknown

options​

PrintTypeOptions

Returns​

string | MDXString

Defined in​

printer.ts:208