use tabs for indent

This commit is contained in:
Klaus Meinhardt
2018-12-16 22:30:14 +01:00
parent 6a9aaa633c
commit 769251498c
2 changed files with 9 additions and 9 deletions
+7 -7
View File
@@ -40,9 +40,9 @@ export function dump(obj: any, opts?: DumpOptions): string;
export interface LoadOptions {
/** string to be used as a file path in error/warning messages. */
filename?: string;
/** function to call on warning messages. */
onWarning?(this: null, e: YAMLException): void;
filename?: string;
/** function to call on warning messages. */
onWarning?(this: null, e: YAMLException): void;
/** specifies a schema to use. */
schema?: SchemaDefinition;
/** compatibility with JSON.parse behaviour. */
@@ -68,10 +68,10 @@ export interface DumpOptions {
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;
/**
* if true flow sequences will be condensed, omitting the space between `key: value` or `a, b`. Eg. `'[a,b]'` or `{a:{b:c}}`.
* Can be useful when using yaml for pretty URL query params as spaces are %-encoded. (default: false).
*/
/**
* if true flow sequences will be condensed, omitting the space between `key: value` or `a, b`. Eg. `'[a,b]'` or `{a:{b:c}}`.
* Can be useful when using yaml for pretty URL query params as spaces are %-encoded. (default: false).
*/
condenseFlow?: boolean;
}
+2 -2
View File
@@ -64,7 +64,7 @@ loadOpts = {
json: bool
};
loadOpts = {
schema: yaml.DEFAULT_SAFE_SCHEMA
schema: yaml.DEFAULT_SAFE_SCHEMA
};
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
@@ -85,7 +85,7 @@ dumpOpts = {
schema: value
};
dumpOpts = {
schema: yaml.DEFAULT_FULL_SCHEMA
schema: yaml.DEFAULT_FULL_SCHEMA
};
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --