mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
Enable TS strict mode by default (#3899)
Fixes #3324 Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
This commit is contained in:
parent
852823fa50
commit
90125566bb
56 changed files with 314 additions and 179 deletions
|
@ -1,4 +1,6 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { assert } from "../testing/asserts.ts";
|
||||
|
||||
export function deepAssign(
|
||||
target: Record<string, unknown>,
|
||||
...sources: object[]
|
||||
|
@ -24,6 +26,7 @@ export function deepAssign(
|
|||
if (typeof target[key] !== `object` || !target[key]) {
|
||||
target[key] = {};
|
||||
}
|
||||
assert(value);
|
||||
deepAssign(target[key] as Record<string, unknown>, value);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue