Type aliases
Doc
Variables
Const breakParent
Const cursor
Const hardline
Const line
Const lineSuffixBoundary
Const literalline
Const softline
Const trim
Functions
addAlignmentToDoc
- addAlignmentToDoc(doc: Doc, size: number, tabWidth: number): Doc
-
Parameters
-
-
size: number
-
tabWidth: number
Returns Doc
align
- align(n: Align["n"], contents: Doc): Align
-
Parameters
-
n: Align["n"]
-
contents: Doc
concat
-
Parameters
conditionalGroup
- conditionalGroup(states: Doc[], opts?: undefined | { shouldBreak: boolean }): Group
-
Parameters
-
states: Doc[]
-
Optional opts: undefined | { shouldBreak: boolean }
dedent
-
Parameters
dedentToRoot
-
Parameters
fill
-
Parameters
group
- group(contents: Doc, opts?: undefined | { shouldBreak: boolean }): Group
-
Parameters
-
contents: Doc
-
Optional opts: undefined | { shouldBreak: boolean }
ifBreak
-
Parameters
-
breakContents: Doc
-
flatContents: Doc
indent
-
Parameters
join
-
Parameters
lineSuffix
-
Parameters
markAsRoot
-
Parameters