plantain-00 / type-coverage

A CLI tool to check type coverage for typescript code
MIT License
1.2k stars 43 forks source link

Unexpected reporting on `Object.prototype.hasOwnProperty` #133

Open JounQin opened 6 months ago

JounQin commented 6 months ago

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
JounQin commented 6 months ago

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

plantain-00 commented 6 months ago

Object.prototype's type is Object as expected.

JounQin commented 6 months ago

Object.prototype's type is Object as expected.

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