Checking module.exports
should not yield a This condition will always return true since this function is always defined
error
#48166
Labels
Given a js file with
we should not issue
error TS2774: This condition will always return true since this function is always defined. Did you mean to call it instead?
on themodule.exports
check - it's an environment check and may very well beundefined
in non-node environments and is totally valid.The text was updated successfully, but these errors were encountered: