Skip to content

Commit

Permalink
ts: Add Options.indent & Options.indentSeq
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Apr 17, 2020
1 parent bf1ac0a commit 9ff4430
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ export interface Options extends Schema.Options {
* Default: `'a'`, resulting in anchors `a1`, `a2`, etc.
*/
anchorPrefix?: string
/**
* The number of spaces to use when indenting code.
*
* Default: `2`
*/
indent?: number
/**
* Whether block sequences should be indented.
*
* Default: `true`
*/
indentSeq?: boolean
/**
* Allow non-JSON JavaScript objects to remain in the `toJSON` output.
* Relevant with the YAML 1.1 `!!timestamp` and `!!binary` tags as well as BigInts.
Expand Down

0 comments on commit 9ff4430

Please sign in to comment.