You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-07-30 04:23:07 +03:00
Enable noImplicitAny (#2895)
* Stash noImplicitAny work * Enable noImplicitAny * Update olm * Fun * Fix msgid stuff * Fix tests * Attempt to fix Browserify
This commit is contained in:
committed by
GitHub
parent
6f81371e61
commit
8d018f9c2d
@ -455,7 +455,11 @@ describe("utils", function() {
|
||||
|
||||
describe("recursivelyAssign", () => {
|
||||
it("doesn't override with null/undefined", () => {
|
||||
const result = utils.recursivelyAssign(
|
||||
const result = utils.recursivelyAssign<{
|
||||
string: string;
|
||||
object: object;
|
||||
float: number;
|
||||
}, {}>(
|
||||
{
|
||||
string: "Hello world",
|
||||
object: {},
|
||||
@ -475,7 +479,11 @@ describe("utils", function() {
|
||||
});
|
||||
|
||||
it("assigns recursively", () => {
|
||||
const result = utils.recursivelyAssign(
|
||||
const result = utils.recursivelyAssign<{
|
||||
number: number;
|
||||
object: object;
|
||||
thing: string | object;
|
||||
}, {}>(
|
||||
{
|
||||
number: 42,
|
||||
object: {
|
||||
|
Reference in New Issue
Block a user