mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 17:33:23 +01:00
915bf2ae88
* capture exception for sentry when invariant conditions are met in migration 82 * Code cleanup * Capture exceptions in invariant conditions for migrations 83,84,85,86,89,91,93,94 * Update app/scripts/migrations/082.test.js Co-authored-by: Mark Stacey <markjstacey@gmail.com> * Code cleanup * Fix SentryObject type declaration * Stop throwing error if preferences controller is undefined * Refactor 084 and 086 to remove double negative * Capture exceptions for invariant states in in migrations 87,88,90 and 92 * lint fix * log warning in migration 82 when preferences controller is undefined --------- Co-authored-by: Mark Stacey <markjstacey@gmail.com>
25 lines
608 B
TypeScript
25 lines
608 B
TypeScript
// In order for variables to be considered on the global scope they must be
|
|
// declared using var and not const or let, which is why this rule is disabled
|
|
/* eslint-disable no-var */
|
|
import * as Sentry from '@sentry/browser';
|
|
|
|
declare class Platform {
|
|
openTab: (opts: { url: string }) => void;
|
|
|
|
closeCurrentWindow: () => void;
|
|
}
|
|
|
|
export declare global {
|
|
var platform: Platform;
|
|
|
|
// Sentry is undefined in dev, so use optional chaining
|
|
var sentry: Sentry | undefined;
|
|
|
|
namespace jest {
|
|
interface Matchers<R> {
|
|
toBeFulfilled(): Promise<R>;
|
|
toNeverResolve(): Promise<R>;
|
|
}
|
|
}
|
|
}
|