diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-06-09 21:42:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-09 21:42:06 -0400 |
commit | 87d3b9b5cc3695402b2e316c39384fabd7e5874a (patch) | |
tree | cf34a91eb1ffe061ee410081dc9027a95401e1cd /encoding/toml.ts | |
parent | 2e0ab295a34229f7d858d1ef916d294779a764d7 (diff) |
upgrade: deno to v0.8.0 (denoland/deno_std#487)
Original: https://github.com/denoland/deno_std/commit/86b7499e658a70d734e1e02fef50e1d9e26f6f56
Diffstat (limited to 'encoding/toml.ts')
-rw-r--r-- | encoding/toml.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/encoding/toml.ts b/encoding/toml.ts index b47e31bba..e93903fae 100644 --- a/encoding/toml.ts +++ b/encoding/toml.ts @@ -373,7 +373,8 @@ class Parser { } obj[k] = v; if (v instanceof Object) { - this._propertyClean(v); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + this._propertyClean(v as any); } } } @@ -394,7 +395,8 @@ class Dumper { this.srcObject = srcObjc; } dump(): string[] { - this.output = this._parse(this.srcObject); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + this.output = this._parse(this.srcObject as any); this.output = this._format(); return this.output; } @@ -449,7 +451,7 @@ class Dumper { out.push(""); out.push(this._header(path + prop)); if (value) { - const toParse: Record<string, unknown> = value; + const toParse = value as Record<string, unknown>; out.push(...this._parse(toParse, `${path}${prop}.`)); } // out.push(...this._parse(value, `${path}${prop}.`)); |