2017-08-10 13:11:17 -06:00
|
|
|
/** This contains all of the global ENV vars passed from server => client.
|
|
|
|
* Previously was `process.env.XYZ`. */
|
|
|
|
declare var globalConfig: { [k: string]: string };
|
2019-09-10 13:03:06 -06:00
|
|
|
|
|
|
|
type LogLevel = "debug" | "info" | "warn" | "error";
|
|
|
|
type LogPayload = { [k: string]: string | number | boolean };
|
|
|
|
interface LogStore {
|
|
|
|
log(message: string, payload?: LogPayload, level?: LogLevel): void;
|
|
|
|
}
|
|
|
|
|
2017-11-03 06:11:34 -06:00
|
|
|
interface Rollbar {
|
2018-03-19 09:25:42 -06:00
|
|
|
error?(msg: string | object): void;
|
2018-03-19 10:46:50 -06:00
|
|
|
configure(object: object): object;
|
2017-11-03 06:11:34 -06:00
|
|
|
}
|
|
|
|
|
2018-03-19 09:25:42 -06:00
|
|
|
interface Window {
|
|
|
|
Rollbar: Rollbar | undefined;
|
2019-09-10 13:03:06 -06:00
|
|
|
logStore: LogStore
|
2018-03-19 09:25:42 -06:00
|
|
|
}
|
2017-12-15 07:07:17 -07:00
|
|
|
|
|
|
|
declare namespace jest {
|
2019-10-30 14:14:31 -06:00
|
|
|
export interface Matchers<R, T> {
|
2017-12-15 07:07:17 -07:00
|
|
|
toBeSameTimeAs: jest.Expect;
|
|
|
|
}
|
|
|
|
}
|