Apply strictNullChecks
to src/components/views/room_settings/*
(#10366
* Apply `strictNullChecks` to `src/components/views/room_settings/*` * Restore tsconfig.json
This commit is contained in:
parent
e3930fb8b0
commit
ad65b4e444
4 changed files with 37 additions and 30 deletions
|
@ -21,7 +21,7 @@ import Field from "./Field";
|
|||
import AccessibleButton, { ButtonEvent } from "./AccessibleButton";
|
||||
|
||||
interface IItemProps {
|
||||
index?: number;
|
||||
index: number;
|
||||
value?: string;
|
||||
onRemove?(index: number): void;
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ interface IProps {
|
|||
canEdit?: boolean;
|
||||
canRemove?: boolean;
|
||||
suggestionsListId?: string;
|
||||
onItemAdded?(item: string): void;
|
||||
onItemAdded?(item?: string): void;
|
||||
onItemRemoved?(index: number): void;
|
||||
onNewItemChanged?(item: string): void;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue