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
cd5fba24e0
commit
b9a28df63c
|
@ -53,7 +53,7 @@ export function clean_function_name(
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const sourceCache: {[source: string]: string | Promise<string>} = {};
|
const sourceCache: Record<string, string | Promise<string>> = {};
|
||||||
|
|
||||||
const stack_trace_gps = new StackTraceGPS({sourceCache});
|
const stack_trace_gps = new StackTraceGPS({sourceCache});
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,7 @@ export const vim_right = "l";
|
||||||
|
|
||||||
export function handle(opts: {
|
export function handle(opts: {
|
||||||
$elem: JQuery;
|
$elem: JQuery;
|
||||||
handlers: {
|
handlers: Record<string, (() => boolean) | undefined>;
|
||||||
[handler: string]: (() => boolean) | undefined;
|
|
||||||
};
|
|
||||||
}): void {
|
}): void {
|
||||||
opts.$elem.on("keydown", (e) => {
|
opts.$elem.on("keydown", (e) => {
|
||||||
if (e.altKey || e.ctrlKey || e.shiftKey) {
|
if (e.altKey || e.ctrlKey || e.shiftKey) {
|
||||||
|
|
|
@ -3,8 +3,8 @@ import type StackFrame from "stackframe";
|
||||||
|
|
||||||
declare namespace StackTraceGPS {
|
declare namespace StackTraceGPS {
|
||||||
type StackTraceGPSOptions = {
|
type StackTraceGPSOptions = {
|
||||||
sourceCache?: {[url: string]: string | Promise<string>};
|
sourceCache?: Record<string, string | Promise<string>>;
|
||||||
sourceMapConsumerCache?: {[sourceMappingUrl: string]: SourceMap.SourceMapConsumer};
|
sourceMapConsumerCache?: Record<string, SourceMap.SourceMapConsumer>;
|
||||||
offline?: boolean;
|
offline?: boolean;
|
||||||
ajax?(url: string): Promise<string>;
|
ajax?(url: string): Promise<string>;
|
||||||
atob?(base64: string): string;
|
atob?(base64: string): string;
|
||||||
|
|
Loading…
Reference in New Issue