import { GraphQLInterfaceType } from "graphql"; import type { MarkdownConverterOptions } from "../types"; export function pushInterfaces( lines: string[], interfaces: readonly GraphQLInterfaceType[], options: MarkdownConverterOptions ): void { lines.push( `
Implements
`, `\n\n` ); interfaces.forEach((inter) => { const typeUrl = options.getTypePath(inter); lines.push( typeUrl ? `- [${inter.name}](${typeUrl})` : `- ${inter.name}`, `\n` ); }); lines.push(`\n`); }