mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
use tabs for indent
This commit is contained in:
Vendored
+7
-7
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||
|
||||
Reference in New Issue
Block a user