2019-10-30 01:08:38 +01:00
|
|
|
// These declarations tell the TypeScript compiler about the existence
|
|
|
|
// of the global variables for our untyped JavaScript modules. Please
|
|
|
|
// remove each declaration when the corresponding module is migrated
|
|
|
|
// to TS.
|
|
|
|
|
2023-03-16 19:19:53 +01:00
|
|
|
declare let zulip_test: any; // eslint-disable-line @typescript-eslint/no-explicit-any
|
2021-02-20 05:52:06 +01:00
|
|
|
|
2023-05-25 10:34:37 +02:00
|
|
|
type JQueryCaretRange = {
|
|
|
|
start: number;
|
|
|
|
end: number;
|
|
|
|
length: number;
|
|
|
|
text: string;
|
|
|
|
};
|
|
|
|
|
2023-04-19 23:40:04 +02:00
|
|
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
2021-02-20 05:52:06 +01:00
|
|
|
interface JQuery {
|
|
|
|
expectOne(): JQuery;
|
2023-05-11 11:44:10 +02:00
|
|
|
get_offset_to_window(): DOMRect;
|
2023-02-22 23:03:47 +01:00
|
|
|
tab(action?: string): this; // From web/third/bootstrap
|
2023-02-26 11:38:01 +01:00
|
|
|
modal(action?: string): this; // From web/third/bootstrap
|
2023-05-25 10:34:37 +02:00
|
|
|
|
|
|
|
// Types for jquery-caret-plugin
|
|
|
|
caret(): number;
|
|
|
|
caret(arg: number | string): this;
|
|
|
|
range(): JQueryCaretRange;
|
|
|
|
range(start: number, end?: number): this;
|
|
|
|
range(text: string): this;
|
|
|
|
selectAll(): this;
|
|
|
|
deselectAll(): this;
|
2021-02-20 05:52:06 +01:00
|
|
|
}
|
2023-03-03 22:38:01 +01:00
|
|
|
|
|
|
|
declare const ZULIP_VERSION: string;
|