summaryrefslogtreecommitdiff
path: root/std/encoding/_yaml/dumper/dumper.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-08-25 09:43:54 +1000
committerGitHub <noreply@github.com>2020-08-24 19:43:54 -0400
commitc4d5b01acfe0cac31f94743a57e8e619178ba563 (patch)
tree1987fe2e23c4db59a44159f4c7d21ecc61be4ad3 /std/encoding/_yaml/dumper/dumper.ts
parent9b0f9c876529696c8008dda8b3606e34d3fe98dc (diff)
feat: update to TypeScript 4.0 (#6514)
Diffstat (limited to 'std/encoding/_yaml/dumper/dumper.ts')
-rw-r--r--std/encoding/_yaml/dumper/dumper.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/std/encoding/_yaml/dumper/dumper.ts b/std/encoding/_yaml/dumper/dumper.ts
index e1f1a142a..ec517ffb2 100644
--- a/std/encoding/_yaml/dumper/dumper.ts
+++ b/std/encoding/_yaml/dumper/dumper.ts
@@ -499,7 +499,9 @@ function writeScalar(
return `'${string.replace(/'/g, "''")}'`;
case STYLE_LITERAL:
return `|${blockHeader(string, state.indent)}${
- dropEndingNewline(indentString(string, indent))
+ dropEndingNewline(
+ indentString(string, indent),
+ )
}`;
case STYLE_FOLDED:
return `>${blockHeader(string, state.indent)}${
@@ -867,7 +869,10 @@ function inspectNode(
}
}
-function getDuplicateReferences(object: object, state: DumperState): void {
+function getDuplicateReferences(
+ object: Record<string, unknown>,
+ state: DumperState,
+): void {
const objects: Any[] = [],
duplicatesIndexes: number[] = [];