-
Notifications
You must be signed in to change notification settings - Fork 7
/
global.d.ts
37 lines (34 loc) · 1.09 KB
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* eslint-disable no-var */
import { Emitter } from '@socket.io/mongo-emitter';
import admin from 'firebase-admin';
import { MongoMemoryReplSet } from 'mongodb-memory-server';
import mongoose from 'mongoose';
import { Browser, Page } from 'puppeteer';
declare global {
var db: {
autoReconnect: boolean;
conn: typeof mongoose | null;
mongoMemoryServer: MongoMemoryReplSet | null;
promise: Promise<typeof mongoose> | null;
};
var firebaseApp: admin.app.App;
var MongoEmitter: Emitter;
var puppetBrowser: Browser | undefined;
var puppetBrowserPage: Page;
interface Array<T> {
findLastIndex(
predicate: (value: T, index: number, obj: T[]) => unknown,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
thisArg?: any,
): number
}
interface Window {
// TODO: install @types/gtag.js or similar for this
// eslint-disable-next-line @typescript-eslint/no-explicit-any
gtag: any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
ReactNativeWebView: any;
}
var __MONGOSERVER__: MongoMemoryReplSet[];
}
export {};