Browse Source

Fixes compile issue with TypeScript 3.2

main
Eric Amodio 6 years ago
parent
commit
4e0e661e8f
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/system/decorators/log.ts

+ 3
- 1
src/system/decorators/log.ts View File

@ -77,7 +77,9 @@ export function log(
) {
options = { timed: true, ...options };
const logFn = options.debug ? Logger.debug.bind(Logger) : Logger.log.bind(Logger);
const logFn = (options.debug ? Logger.debug.bind(Logger) : Logger.log.bind(Logger)) as
| typeof Logger.debug
| typeof Logger.log;
return (target: any, key: string, descriptor: PropertyDescriptor) => {
let fn: Function | undefined;

Loading…
Cancel
Save