tsconfig: Enable exactOptionalPropertyTypes.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-05-15 20:05:29 -07:00
committed by Tim Abbott
parent 08a50cf74b
commit 507eb4913c
33 changed files with 94 additions and 85 deletions

View File

@@ -59,7 +59,7 @@ type DropdownWidgetOptions = {
focus_target_on_hidden?: boolean;
tippy_props?: Partial<tippy.Props>;
// NOTE: Any value other than `undefined` will be rendered when class is initialized.
default_id?: string | number;
default_id?: string | number | undefined;
unique_id_type?: DataTypes;
// Text to show if the current value is not in `get_options()`.
text_if_current_value_not_in_options?: string;