Skip to content
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

Typescript: document id property #5911

Closed
simonbear89 opened this issue Dec 17, 2017 · 3 comments
Closed

Typescript: document id property #5911

simonbear89 opened this issue Dec 17, 2017 · 3 comments

Comments

@simonbear89
Copy link
Contributor

http://mongoosejs.com/docs/api.html#document_Document-id

Says the id property is a getter than returns a string version of _id.
If I initialize a schema using the option { id: false }, that means the id property can be any type I want right?

Can we clarify this in the docs? Because my PR is being blocked.
DefinitelyTyped/DefinitelyTyped#21856 (comment)

@JasonCust
Copy link

It's pretty clear in the docs already: http://mongoosejs.com/docs/guide.html#id

It is linked from the documentation link you provided via Schema options.

@simonbear89
Copy link
Contributor Author

Thanks.

@vkarpov15
Copy link
Collaborator

Thanks for maintaining the TS bindings @simonxca and thanks for the issue help @JasonCust . A very merry Christmas to you both! 👍 🎄 🎅

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

No branches or pull requests

3 participants