Conform more of the codebase to strictNullChecks (#10505
* Conform more of the codebase to `strictNullChecks` * Iterate * Conform more of the codebase to `strictNullChecks` * Iterate * Iterate * Iterate * Iterate
This commit is contained in:
committed by
GitHub
parent
7503bf6b96
commit
e5a314617a
@@ -26,7 +26,8 @@ import ErrorDialog from "./ErrorDialog";
|
||||
import TextInputDialog from "./TextInputDialog";
|
||||
|
||||
interface IProps {
|
||||
onFinished: (success: boolean) => void;
|
||||
onFinished(success?: false, reason?: void): void;
|
||||
onFinished(success: true, reason?: string): void;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -67,7 +68,7 @@ export function createRedactEventDialog({
|
||||
Modal.createDialog(
|
||||
ConfirmRedactDialog,
|
||||
{
|
||||
onFinished: async (proceed: boolean, reason?: string): Promise<void> => {
|
||||
onFinished: async (proceed, reason): Promise<void> => {
|
||||
if (!proceed) return;
|
||||
|
||||
const cli = MatrixClientPeg.get();
|
||||
|
||||
Reference in New Issue
Block a user