You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-09 08:42:50 +03:00
Make more of the codebase conform to strict types (#10859)
This commit is contained in:
committed by
GitHub
parent
6f58dd49e3
commit
f758cbd38a
@@ -268,9 +268,11 @@ describe("MessageComposer", () => {
|
||||
let resizeCallback: Function;
|
||||
|
||||
beforeEach(() => {
|
||||
jest.spyOn(UIStore.instance, "on").mockImplementation((_event: string, listener: Function): any => {
|
||||
resizeCallback = listener;
|
||||
});
|
||||
jest.spyOn(UIStore.instance, "on").mockImplementation(
|
||||
(_event: string | symbol, listener: Function): any => {
|
||||
resizeCallback = listener;
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
describe("when a non-resize event occurred in UIStore", () => {
|
||||
|
@@ -40,7 +40,7 @@ describe("VoiceBroadcastPlaybacksStore", () => {
|
||||
let playback1: VoiceBroadcastPlayback;
|
||||
let playback2: VoiceBroadcastPlayback;
|
||||
let playbacks: VoiceBroadcastPlaybacksStore;
|
||||
let onCurrentChanged: (playback: VoiceBroadcastPlayback) => void;
|
||||
let onCurrentChanged: (playback: VoiceBroadcastPlayback | null) => void;
|
||||
|
||||
beforeEach(() => {
|
||||
client = stubClient();
|
||||
|
@@ -35,7 +35,7 @@ describe("VoiceBroadcastRecordingsStore", () => {
|
||||
let recording: VoiceBroadcastRecording;
|
||||
let otherRecording: VoiceBroadcastRecording;
|
||||
let recordings: VoiceBroadcastRecordingsStore;
|
||||
let onCurrentChanged: (recording: VoiceBroadcastRecording) => void;
|
||||
let onCurrentChanged: (recording: VoiceBroadcastRecording | null) => void;
|
||||
|
||||
beforeEach(() => {
|
||||
client = stubClient();
|
||||
|
Reference in New Issue
Block a user