mirror of https://github.com/zulip/zulip.git
eslint: Fix @typescript-eslint/no-duplicate-type-constituents.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
e63365a4da
commit
fb623f4450
|
@ -85,7 +85,7 @@ export function warn(msg: string, more_info?: unknown): void {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function error(msg: string, more_info?: object | undefined, original_error?: unknown): void {
|
export function error(msg: string, more_info?: object, original_error?: unknown): void {
|
||||||
// Log the Sentry error before the console warning, so we don't
|
// Log the Sentry error before the console warning, so we don't
|
||||||
// end up with a doubled message in the Sentry logs.
|
// end up with a doubled message in the Sentry logs.
|
||||||
Sentry.setContext("more_info", more_info ?? null);
|
Sentry.setContext("more_info", more_info ?? null);
|
||||||
|
|
|
@ -8,7 +8,7 @@ import render_blueslip_stacktrace from "../templates/blueslip_stacktrace.hbs";
|
||||||
export class BlueslipError extends Error {
|
export class BlueslipError extends Error {
|
||||||
override name = "BlueslipError";
|
override name = "BlueslipError";
|
||||||
more_info?: object;
|
more_info?: object;
|
||||||
constructor(msg: string, more_info?: object | undefined, cause?: unknown) {
|
constructor(msg: string, more_info?: object, cause?: unknown) {
|
||||||
super(msg, {cause});
|
super(msg, {cause});
|
||||||
if (more_info !== undefined) {
|
if (more_info !== undefined) {
|
||||||
this.more_info = more_info;
|
this.more_info = more_info;
|
||||||
|
|
|
@ -45,7 +45,7 @@ export function get_current_email(
|
||||||
|
|
||||||
export function create_pills(
|
export function create_pills(
|
||||||
$pill_container: JQuery,
|
$pill_container: JQuery,
|
||||||
pill_config?: InputPillConfig | undefined,
|
pill_config?: InputPillConfig,
|
||||||
): input_pill.InputPillContainer<EmailPill> {
|
): input_pill.InputPillContainer<EmailPill> {
|
||||||
const pill_container = input_pill.create({
|
const pill_container = input_pill.create({
|
||||||
$container: $pill_container,
|
$container: $pill_container,
|
||||||
|
|
|
@ -711,7 +711,7 @@ function get_default_emoji_popover_options(): Partial<tippy.Props> {
|
||||||
|
|
||||||
export function toggle_emoji_popover(
|
export function toggle_emoji_popover(
|
||||||
target: tippy.ReferenceElement,
|
target: tippy.ReferenceElement,
|
||||||
id?: number | undefined,
|
id?: number,
|
||||||
additional_popover_options?: Partial<tippy.Props>,
|
additional_popover_options?: Partial<tippy.Props>,
|
||||||
): void {
|
): void {
|
||||||
if (id) {
|
if (id) {
|
||||||
|
|
|
@ -25,7 +25,7 @@ type InputPillCreateOptions<ItemType> = {
|
||||||
create_item_from_text: (
|
create_item_from_text: (
|
||||||
text: string,
|
text: string,
|
||||||
existing_items: ItemType[],
|
existing_items: ItemType[],
|
||||||
pill_config?: InputPillConfig | undefined,
|
pill_config?: InputPillConfig,
|
||||||
) => ItemType | undefined;
|
) => ItemType | undefined;
|
||||||
get_text_from_item: (item: ItemType) => string;
|
get_text_from_item: (item: ItemType) => string;
|
||||||
get_display_value_from_item: (item: ItemType) => string;
|
get_display_value_from_item: (item: ItemType) => string;
|
||||||
|
|
|
@ -38,7 +38,7 @@ export type UserPillData = {type: "user"; user: User};
|
||||||
export function create_item_from_email(
|
export function create_item_from_email(
|
||||||
email: string,
|
email: string,
|
||||||
current_items: CombinedPill[],
|
current_items: CombinedPill[],
|
||||||
pill_config?: InputPillConfig | undefined,
|
pill_config?: InputPillConfig,
|
||||||
): UserPill | undefined {
|
): UserPill | undefined {
|
||||||
// For normal Zulip use, we need to validate the email for our realm.
|
// For normal Zulip use, we need to validate the email for our realm.
|
||||||
const user = people.get_by_email(email);
|
const user = people.get_by_email(email);
|
||||||
|
@ -217,7 +217,7 @@ export function generate_pill_html(item: UserPill, show_user_status_emoji = fals
|
||||||
|
|
||||||
export function create_pills(
|
export function create_pills(
|
||||||
$pill_container: JQuery,
|
$pill_container: JQuery,
|
||||||
pill_config?: InputPillConfig | undefined,
|
pill_config?: InputPillConfig,
|
||||||
): input_pill.InputPillContainer<UserPill> {
|
): input_pill.InputPillContainer<UserPill> {
|
||||||
const pills = input_pill.create({
|
const pills = input_pill.create({
|
||||||
$container: $pill_container,
|
$container: $pill_container,
|
||||||
|
|
Loading…
Reference in New Issue