From c00f309940cddbef7151179aa531d738f7d2a4ed Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti <andrewf@element.io> Date: Mon, 6 Jun 2022 08:36:58 -0400 Subject: [PATCH] appservicemock.ts: Satisfy linter Signed-off-by: Andrew Ferrazzutti <andrewf@element.io> --- test/mocks/appservicemock.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/mocks/appservicemock.ts b/test/mocks/appservicemock.ts index 4de03ee..28eb393 100644 --- a/test/mocks/appservicemock.ts +++ b/test/mocks/appservicemock.ts @@ -167,7 +167,7 @@ class IntentMock extends AppserviceMockBase { this.funcCalled("sendText", roomId, body); } - public sendEvent(roomId: string, content: any) { + public sendEvent(roomId: string, content: Record<string, unknown>) { this.funcCalled("sendEvent", roomId, content); } @@ -218,7 +218,7 @@ class MatrixClientMock extends AppserviceMockBase { this.funcCalled("kickUser", roomId, userId); } - public sendStateEvent(roomId: string, type: string, stateKey: string, content: {}) { + public sendStateEvent(roomId: string, type: string, stateKey: string, content: Record<string, unknown>) { this.funcCalled("sendStateEvent", roomId, type, stateKey, content); } -- GitLab