Skip to main content
Latest
function printBlockString
import { printBlockString } from "https://deno.land/x/graphql_deno@v15.0.0/lib/language/blockString.d.ts";

Print a block string in the indented block form by adding a leading and trailing blank line. However, if a block string starts with whitespace and is a single-line, adding a leading blank line would strip that whitespace.

Parameters

value: string
optional
indentation: string
optional
preferMultipleLines: boolean

Returns

string