1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Fix logger type

This commit is contained in:
Laurent Cozic 2020-11-25 09:40:54 +00:00
parent 9a2fd97f3c
commit 416a7b36e7
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
import Setting from './models/Setting';
import Logger, { TargetType } from './Logger';
import Logger, { TargetType, LoggerWrapper } from './Logger';
import shim from './shim';
import BaseService from './services/BaseService';
import reducer from './reducer';
@ -46,7 +46,7 @@ const MigrationService = require('./services/MigrationService');
const { toSystemSlashes } = require('./path-utils');
const { setAutoFreeze } = require('immer');
const appLogger = Logger.create('App');
const appLogger: LoggerWrapper = Logger.create('App');
// const ntpClient = require('./vendor/ntp-client');
// ntpClient.dgram = require('dgram');
@ -103,7 +103,7 @@ export default class BaseApplication {
this.decryptionWorker_resourceMetadataButNotBlobDecrypted = null;
}
logger() {
logger(): LoggerWrapper {
return appLogger;
}

View File

@ -26,7 +26,7 @@ interface Target {
source?: string;
}
interface LoggerWrapper {
export interface LoggerWrapper {
debug: Function;
info: Function;
warn: Function;