Conform more code to strictNullChecks
(#10374)
* Apply `strictNullChecks` to `src/components/views/room_settings/*` * Restore tsconfig.json * Conform more code to `strictNullChecks` * Iterate * Update matrix-widget-api * Conform more code to `strictNullChecks`
This commit is contained in:
parent
9c816bb720
commit
1c9ea423c9
44 changed files with 223 additions and 179 deletions
|
@ -41,7 +41,8 @@ interface IProps {
|
|||
defaultName?: string;
|
||||
parentSpace?: Room;
|
||||
defaultEncrypted?: boolean;
|
||||
onFinished(proceed?: boolean, opts?: IOpts): void;
|
||||
onFinished(proceed?: false): void;
|
||||
onFinished(proceed: true, opts: IOpts): void;
|
||||
}
|
||||
|
||||
interface IState {
|
||||
|
|
|
@ -46,7 +46,8 @@ interface IProps {
|
|||
widgetDefinition: IModalWidgetOpenRequestData;
|
||||
widgetRoomId?: string;
|
||||
sourceWidgetId: string;
|
||||
onFinished(success?: boolean, data?: IModalWidgetReturnData): void;
|
||||
onFinished(success: true, data: IModalWidgetReturnData): void;
|
||||
onFinished(success?: false, data?: void): void;
|
||||
}
|
||||
|
||||
interface IState {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue