Skip to content

Commit

Permalink
update code for @enum breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Sep 10, 2019
1 parent 320b30b commit a736c3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/logging/Logger.js
Expand Up @@ -32,14 +32,14 @@ const LogType = Object.freeze({

exports.LogType = LogType;

/** @typedef {LogType} LogTypeEnum */
/** @typedef {keyof LogType} LogTypeEnum */

const LOG_SYMBOL = Symbol("webpack logger raw log method");
const TIMERS_SYMBOL = Symbol("webpack logger times");

class WebpackLogger {
/**
* @param {function(LogType, any[]=): void} log log function
* @param {function(LogTypeEnum, any[]=): void} log log function
*/
constructor(log) {
this[LOG_SYMBOL] = log;
Expand Down
3 changes: 2 additions & 1 deletion lib/logging/createConsoleLogger.js
Expand Up @@ -47,7 +47,8 @@ const filterToFunction = item => {
};

/**
* @enum {number} */
* @enum {number}
*/
const LogLevel = {
none: 6,
false: 6,
Expand Down

0 comments on commit a736c3e

Please sign in to comment.