Add types for StorageManager functions

pull/21833/head
J. Ryan Stinnett 2021-04-26 15:30:34 +01:00
parent 4b66082b0f
commit 82caac16c8
1 changed files with 3 additions and 3 deletions

View File

@ -32,15 +32,15 @@ try {
const SYNC_STORE_NAME = "riot-web-sync"; const SYNC_STORE_NAME = "riot-web-sync";
const CRYPTO_STORE_NAME = "matrix-js-sdk:crypto"; const CRYPTO_STORE_NAME = "matrix-js-sdk:crypto";
function log(msg) { function log(msg: string) {
console.log(`StorageManager: ${msg}`); console.log(`StorageManager: ${msg}`);
} }
function error(msg, ...args) { function error(msg: string, ...args: string[]) {
console.error(`StorageManager: ${msg}`, ...args); console.error(`StorageManager: ${msg}`, ...args);
} }
function track(action) { function track(action: string) {
Analytics.trackEvent("StorageManager", action); Analytics.trackEvent("StorageManager", action);
} }