plantain-00/type-coverage

Unexpected reporting on `Object.prototype.hasOwnProperty`

Opened this issue · 3 comments

Version(if relevant): 2.27.1

Environment(if relevant):

Code(if relevant):

Object.prototype.hasOwnProperty.call(m.exports, 'default')

Expected:

No issue

Actual:

src/bundle-renderer/create-bundle-runner.ts:113:14: prototype

I don't want to enable --ignore-object

Object.prototype's type is Object as expected.

Object.prototype's type is Object as expected.

@plantain-00 Could that be possible to report Object.prototype but ignore Object.prototype.xxx?