MCPcopy Index your code
hub / github.com/ehmicky/log-process-errors / validateExit

Function validateExit

src/options.js:27–31  ·  view source on GitHub ↗
(exit)

Source from the content-addressed store, hash-verified

25}
26
27const validateExit = (exit) => {
28 if (exit !== undefined && typeof exit !== 'boolean') {
29 throw new TypeError(`Option "exit" must be a boolean: ${exit}`)
30 }
31}
32
33// `console` should be referenced inside this function, not outside, as user
34// might monkey patch it.

Callers 1

getOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…