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:
committed by
GitHub
parent
e3930fb8b0
commit
ad65b4e444
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user