From f32c1c1fb2dba562b5dcb3d2d70d2857954cb5be Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Tue, 20 Dec 2016 06:25:25 -0800 Subject: [PATCH] add missing DumpOptions (#13072) --- js-yaml/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js-yaml/index.d.ts b/js-yaml/index.d.ts index 1ac7b6ec26..b4a5d36bae 100644 --- a/js-yaml/index.d.ts +++ b/js-yaml/index.d.ts @@ -42,6 +42,14 @@ declare namespace jsyaml { styles?: Object; // specifies a schema to use. schema?: any; + // if true, sort keys when dumping YAML. If a function, use the function to sort the keys. (default: false) + sortKeys?: boolean; + // set max line width. (default: 80) + lineWidth?: number; + // if true, don't convert duplicate objects into references (default: false) + noRefs?: boolean; + // if true don't try to be compatible with older yaml versions. Currently: don't quote "yes", "no" and so on, as required for YAML 1.1 (default: false) + noCompatMode?: boolean; } export interface TypeConstructorOptions {