Files
zulip-desktop/typings.d.ts
Anders Kaseorg 9d2739f050 js: Declare 'use strict' on all scripts and no modules.
And enable the import/unambiguous ESLint rule as a check on our
partition between scripts and modules.  After this commit, if you add
a new file and get this error:

  ✖  1:1  This module could be parsed as a valid script.  import/unambiguous

* For a module, add an `import` or `export` declaration to make the
  file unambiguously a module (the empty `export {};` declaration
  suffices).
* For a script, add the file to the xo overrides section of
  package.json that marks it "sourceType": "script", and add a 'use
  strict' declaration.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-03-09 20:04:43 -07:00

24 lines
485 B
TypeScript

'use strict';
declare module '@electron-elements/send-feedback';
declare module 'node-mac-notifier';
declare module 'wurl';
interface PageParamsObject {
realm_uri: string;
default_language: string;
external_authentication_methods: any;
}
declare let page_params: PageParamsObject;
// This is mostly zulip side of code we access from window
interface Window {
$: any;
narrow: any;
}
interface ZulipWebWindow extends Window {
electron_bridge: any;
tray: any;
lightbox: any;
}