mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
eslint: Enable @typescript-eslint/method-signature-style.
For historical reasons, TypeScript ignores variance errors for method shorthand type declarations even in strict mode. Prefer the correctly checked style. https://typescript-eslint.io/rules/method-signature-style Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
b44daf080c
commit
6e220f4dc1
@@ -16,13 +16,13 @@ import * as keydown_util from "./keydown_util";
|
||||
*/
|
||||
|
||||
export type Toggle = {
|
||||
maybe_go_left(): boolean;
|
||||
maybe_go_right(): boolean;
|
||||
disable_tab(name: string): void;
|
||||
enable_tab(name: string): void;
|
||||
value(): string | undefined;
|
||||
get(): JQuery;
|
||||
goto(name: string): void;
|
||||
maybe_go_left: () => boolean;
|
||||
maybe_go_right: () => boolean;
|
||||
disable_tab: (name: string) => void;
|
||||
enable_tab: (name: string) => void;
|
||||
value: () => string | undefined;
|
||||
get: () => JQuery;
|
||||
goto: (name: string) => void;
|
||||
};
|
||||
|
||||
export function toggle(opts: {
|
||||
|
||||
Reference in New Issue
Block a user