mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Fixed type
This commit is contained in:
parent
0f0c50a178
commit
4d65bfe3f8
@ -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;
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ interface Target {
|
||||
source?: string;
|
||||
}
|
||||
|
||||
interface LoggerWrapper {
|
||||
export interface LoggerWrapper {
|
||||
debug: Function;
|
||||
info: Function;
|
||||
warn: Function;
|
||||
|
Loading…
Reference in New Issue
Block a user