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;
|
email?: string | undefined;
|
||||||
github_username?: string | undefined;
|
github_username?: string | undefined;
|
||||||
name?: string | undefined;
|
name?: string | undefined;
|
||||||
} & {
|
} & Partial<Record<RepositoryName, number>>;
|
||||||
[K in RepositoryName]?: number;
|
|
||||||
};
|
|
||||||
type ContributorData = {
|
type ContributorData = {
|
||||||
avatar: string;
|
avatar: string;
|
||||||
email?: string | undefined;
|
email?: string | undefined;
|
||||||
|
|
|
@ -14,7 +14,7 @@ type TimeKey =
|
||||||
| "tomorrow_four_pm"
|
| "tomorrow_four_pm"
|
||||||
| "monday_nine_am";
|
| "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;
|
export const MINIMUM_SCHEDULED_MESSAGE_DELAY_SECONDS = 5 * 60;
|
||||||
|
|
||||||
|
|
|
@ -145,12 +145,13 @@ export const web_home_view_values = {
|
||||||
};
|
};
|
||||||
|
|
||||||
type ColorScheme = "automatic" | "dark" | "light";
|
type ColorScheme = "automatic" | "dark" | "light";
|
||||||
export type ColorSchemeValues = {
|
export type ColorSchemeValues = Record<
|
||||||
[key in ColorScheme]: {
|
ColorScheme,
|
||||||
|
{
|
||||||
code: number;
|
code: number;
|
||||||
description: string;
|
description: string;
|
||||||
};
|
}
|
||||||
};
|
>;
|
||||||
|
|
||||||
export const color_scheme_values = {
|
export const color_scheme_values = {
|
||||||
automatic: {
|
automatic: {
|
||||||
|
|
Loading…
Reference in New Issue