Skip to content

Commit 4bc264a

Browse files
committed
Fix {Any} to {*} per jsdoc
1 parent 09523b2 commit 4bc264a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/LambdaLog.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class LambdaLog extends EventEmitter {
117117
* and emitted through an event. If an `Error` or `Error`-like object is provided for `msg`, it will parse out the message and include the stacktrace in the metadata.
118118
* @throws {Error} If improper log level is provided.
119119
* @param {String} level Log level (`info`, `debug`, `warn`, `error` or a [custom log level](#custom-log-levels))
120-
* @param {Any} msg Message to log. Can be any type, but string or `Error` reccommended.
120+
* @param {*} msg Message to log. Can be any type, but string or `Error` reccommended.
121121
* @param {Object} [meta={}] Optional meta data to attach to the log.
122122
* @param {Array} [tags=[]] Additional tags to append to this log.
123123
* @return {LogMessage|Boolean} Returns instance of LogMessage or `false` if `level = "debug"` and `options.debug = false`. May also return `false` when a [custom log level](#custom-log-levels) handler function prevents the log from being logged.
@@ -171,8 +171,8 @@ class LambdaLog extends EventEmitter {
171171
* Generates a log message if `test` is a falsy value. If `test` is truthy, the log message is skipped and returns `false`. Allows creating log messages without the need to
172172
* wrap them in an if statement. The log level will be `error`.
173173
* @since 1.4.0
174-
* @param {Any} test A value which is tested for a falsy value.
175-
* @param {Any} msg Message to log if `test` is falsy. Can be any type, but string or `Error` reccommended.
174+
* @param {*} test A value which is tested for a falsy value.
175+
* @param {*} msg Message to log if `test` is falsy. Can be any type, but string or `Error` reccommended.
176176
* @param {Object} [meta={}] Optional meta data to attach to the log.
177177
* @param {Array} [tags=[]] Additional tags to append to this log.
178178
* @return {LogMessage|Boolean} The LogMessage instance for the log or `false` if test passed.

lib/LogMessage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class LogMessage {
138138
/**
139139
* Checks if value is an Error or Error-like object
140140
* @private
141-
* @param {Any} val Value to test
141+
* @param {*} val Value to test
142142
* @return {Boolean} Whether the value is an Error or Error-like object
143143
*/
144144
static isError(val) {

0 commit comments

Comments
 (0)