function prettyPrint
prettyPrint(
specification: Specification,
sdlStringInput: SdlStringInput,
): Promise<string>

Prettify the source.

Parameters

specification: Specification

The specification to be used for the pre-parsed AST.

sdlStringInput: SdlStringInput

The SDL source StringInput.

Return Type

Promise<string>

Usage

import { prettyPrint } from ".";