mirror of https://github.com/zulip/zulip.git
eslint: Fix @typescript-eslint/consistent-indexed-object-style.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
03c3bb31dc
commit
6037230ea8
|
@ -74,9 +74,7 @@ export type Contributor = {
|
|||
email?: string | undefined;
|
||||
github_username?: string | undefined;
|
||||
name?: string | undefined;
|
||||
} & {
|
||||
[K in RepositoryName]?: number;
|
||||
};
|
||||
} & Partial<Record<RepositoryName, number>>;
|
||||
type ContributorData = {
|
||||
avatar: string;
|
||||
email?: string | undefined;
|
||||
|
|
|
@ -14,7 +14,7 @@ type TimeKey =
|
|||
| "tomorrow_four_pm"
|
||||
| "monday_nine_am";
|
||||
|
||||
type SendOption = {[key in TimeKey]?: {text: string; stamp: number}};
|
||||
type SendOption = Partial<Record<TimeKey, {text: string; stamp: number}>>;
|
||||
|
||||
export const MINIMUM_SCHEDULED_MESSAGE_DELAY_SECONDS = 5 * 60;
|
||||
|
||||
|
|
|
@ -145,12 +145,13 @@ export const web_home_view_values = {
|
|||
};
|
||||
|
||||
type ColorScheme = "automatic" | "dark" | "light";
|
||||
export type ColorSchemeValues = {
|
||||
[key in ColorScheme]: {
|
||||
export type ColorSchemeValues = Record<
|
||||
ColorScheme,
|
||||
{
|
||||
code: number;
|
||||
description: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
>;
|
||||
|
||||
export const color_scheme_values = {
|
||||
automatic: {
|
||||
|
|
Loading…
Reference in New Issue