Skip to content

check-types now expects "object" instead of "Object" #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2019

Conversation

brettz9
Copy link
Collaborator

@brettz9 brettz9 commented May 21, 2019

BREAKING CHANGE: check-types now expects "object" instead of "Object"

Makes consistent with Typescript recommendation and fact that Object.create(null) is not instanceof Object but its typeof is object.

Can restore old behavior through settings: {jsdoc: {preferredTypes: {object: 'Object'}}}} (and check-types still enabled). Closes #164

Makes consistent with Typescript recommendation and fact that `Object.create(null)` is not `instanceof Object` but its `typeof` is `object`.

Can restore old behavior through `settings: {jsdoc: {preferredTypes: {object: 'Object'}}}}` (and `check-types` still enabled). Closes gajus#164
@brettz9 brettz9 requested a review from gajus May 21, 2019 15:28
@brettz9 brettz9 merged commit 9d993b2 into gajus:master May 21, 2019
@brettz9 brettz9 deleted the object-default branch May 21, 2019 23:28
brettz9 added a commit that referenced this pull request May 21, 2019
BREAKING CHANGE: `check-types` now expects "object" instead of "Object"

Makes consistent with Typescript recommendation and fact that `Object.create(null)` is not `instanceof Object` but its `typeof` is `object`.

Can restore old behavior through `settings: {jsdoc: {preferredTypes: {object: 'Object'}}}}` (and `check-types` still enabled). Closes #164
@gajus
Copy link
Owner

gajus commented May 21, 2019

🎉 This PR is included in version 6.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gajus gajus added the released label May 21, 2019
@gajus
Copy link
Owner

gajus commented Jul 16, 2019

Just in case, the original reasoning for Object is "documented" here #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

check‑types: Allow lower‑case object
2 participants