Skip to content

Commit

Permalink
[js-yaml]: Added new noArrayIndent property that is added on v3.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RyotaMurohoshi committed Jan 18, 2019
1 parent d901e5a commit 05d01d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/js-yaml/index.d.ts
@@ -1,4 +1,4 @@
// Type definitions for js-yaml 3.11
// Type definitions for js-yaml 3.12
// Project: https://github.com/nodeca/js-yaml
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Sebastian Clausen <https://github.com/sclausen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Expand Down Expand Up @@ -52,6 +52,8 @@ export interface LoadOptions {
export interface DumpOptions {
/** indentation width to use (in spaces). */
indent?: number;
/** when true, will not add an indentation level to array elements */
noArrayIndent?: boolean;
/** do not throw on invalid types (like function in the safe schema) and skip pairs and single values with such types. */
skipInvalid?: boolean;
/** specifies level of nesting, when to switch from block to flow style for collections. -1 means block style everwhere */
Expand Down
3 changes: 3 additions & 0 deletions types/js-yaml/js-yaml-tests.ts
Expand Up @@ -72,6 +72,9 @@ loadOpts = {
dumpOpts = {
indent: num
};
dumpOpts = {
noArrayIndent: bool
};
dumpOpts = {
skipInvalid: bool
};
Expand Down

0 comments on commit 05d01d4

Please sign in to comment.