mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
tsconfig: Enable noUncheckedIndexedAccess.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -82,7 +82,7 @@ export function toggle(opts: {
|
||||
|
||||
meta.idx = idx;
|
||||
if (opts.callback) {
|
||||
opts.callback(opts.values[idx].label, opts.values[idx].key);
|
||||
opts.callback(opts.values[idx]!.label, opts.values[idx]!.key);
|
||||
}
|
||||
|
||||
if (!opts.child_wants_focus) {
|
||||
@@ -162,7 +162,7 @@ export function toggle(opts: {
|
||||
|
||||
value() {
|
||||
if (meta.idx >= 0) {
|
||||
return opts.values[meta.idx].label;
|
||||
return opts.values[meta.idx]!.label;
|
||||
}
|
||||
/* istanbul ignore next */
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user