You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-04 11:51:45 +03:00
Appease the linter
This commit is contained in:
@@ -18,7 +18,7 @@ import { SettingLevel } from "./SettingLevel";
|
||||
|
||||
export type CallbackFn = (changedInRoomId: string, atLevel: SettingLevel, newValAtLevel: any) => void;
|
||||
|
||||
const IRRELEVANT_ROOM: symbol = Symbol("any room");
|
||||
const IRRELEVANT_ROOM = Symbol("any room");
|
||||
|
||||
interface RoomWatcherMap {
|
||||
// @ts-ignore - TS wants string-only keys but we know better - https://github.com/Microsoft/TypeScript/issues/1863
|
||||
|
||||
@@ -39,6 +39,7 @@ function isPushNotifyDisabled(): boolean {
|
||||
}
|
||||
|
||||
function getNotifier(): any { // TODO: [TS] Formal type that doesn't cause a cyclical reference.
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
let Notifier = require('../../Notifier'); // avoids cyclical references
|
||||
if (Notifier.default) Notifier = Notifier.default; // correct for webpack require() weirdness
|
||||
return Notifier;
|
||||
|
||||
Reference in New Issue
Block a user