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

Prettify the source.

Parameters

specification: Specification

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

sdlStringInput: SdlStringInput

The SDL source StringInput.

optional
lineWidth: number = 80

The line width to format to.

Return Type

Promise<string>

Usage

import { prettyPrint } from ".";