(fieldOrDirectives: Field | Directive)
| 155 | } |
| 156 | |
| 157 | argumentsDescription(fieldOrDirectives: Field | Directive): string[] { |
| 158 | |
| 159 | if (fieldOrDirectives.args.length === 0) { |
| 160 | return []; |
| 161 | } |
| 162 | |
| 163 | const reduceArguments = (descriptions: string[], arg: InputValue) => descriptions.concat(this.argumentDescription(arg)); |
| 164 | |
| 165 | return fieldOrDirectives.args |
| 166 | .reduce(reduceArguments, [html.comment('Arguments')]); |
| 167 | } |
| 168 | |
| 169 | deprecated(fieldOrEnumVal: Field | EnumValue): string { |
| 170 |