Skip to content

Commit 22f8f27

Browse files
authored
deps: remove @types/extend (#830)
Remove @types/extend as it seems to be broken in combination with Node 12.16.0. Object.assign(...) can be used instead of extend. Only the deep copy option of extend is not natively supported by Object.assign.
1 parent c0fb78f commit 22f8f27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/database.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ describe('Database', () => {
210210
AsyncTransactionRunner: FakeAsyncTransactionRunner,
211211
},
212212
}).Database;
213-
DatabaseCached = extend({}, Database);
213+
// The following commented out line is the one that will trigger the error.
214+
// DatabaseCached = extend({}, Database);
215+
DatabaseCached = Object.assign({}, Database);
214216
});
215217

216218
beforeEach(() => {

0 commit comments

Comments
 (0)