UNPKG

core-types-graphql

Version:
12 lines (11 loc) 618 B
import { type CoreTypeAnnotations } from "core-types"; import { StringValueNode } from "graphql"; import { Context } from "./types.js"; /** * Turns annotations into Markdown comments, which is the standard GraphQL * comment format. */ export declare function stringifyAnnotations(node: CoreTypeAnnotations, ctx: Context): string; export declare function parseDescription(descriptionText: StringValueNode | string | undefined): CoreTypeAnnotations; export declare function unindentEqual(lines: Array<string>): Array<string>; export declare function parseString(str: StringValueNode | undefined): string | undefined;