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 error dataValues is does not exist model #15207

Closed
1 of 4 tasks
spearmootz opened this issue Oct 31, 2022 · 3 comments
Closed
1 of 4 tasks

typescript error dataValues is does not exist model #15207

spearmootz opened this issue Oct 31, 2022 · 3 comments
Assignees
Labels
type: typescript For issues and PRs. Things that involve typescript, such as typings and intellisense.

Comments

@spearmootz
Copy link
Contributor

spearmootz commented Oct 31, 2022

Issue Creation Checklist

  • [ x] I understand that my issue will be automatically closed if I don't fill in the requested information
  • [ x] I have read the contribution guidelines

Bug Description

whenever i have a model instance and want to do instance.dataValue, typescript suggests the object does not exists.

Reproducible Example

Here is the link to the SSCCE for this issue:

What do you expect to happen?

to have a typed definition or at least an any

What is actually happening?

Environment

  • Sequelize version: 6.25.3
  • Node.js version: 16.14.2
  • If TypeScript related: TypeScript version: 4.8.4
  • Database & Version: postgres 12
  • Connector library & Version: pg 8.3.3

Would you be willing to resolve this issue by submitting a Pull Request?

  • Yes, I have the time and I know how to start.
  • Yes, I have the time but I will need guidance.
  • No, I don't have the time, but my company or I are supporting Sequelize through donations on OpenCollective.
  • No, I don't have the time, and I understand that I will need to wait until someone from the community or maintainers is interested in resolving my issue.

Indicate your interest in the resolution of this issue by adding the 👍 reaction. Comments such as "+1" will be removed.

@spearmootz
Copy link
Contributor Author

spearmootz commented Oct 31, 2022

here is the PR that allows this #15208

main...spearmootz:sequelize:patch-1

@fzn0x fzn0x added the type: typescript For issues and PRs. Things that involve typescript, such as typings and intellisense. label Nov 4, 2022
@spearmootz
Copy link
Contributor Author

@fzn0x the mr above was merged. i have the issue on V6 so i made this mr

#15240

@fzn0x
Copy link
Member

fzn0x commented Nov 5, 2022

Both are merged, thanks!

@fzn0x fzn0x closed this as completed Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: typescript For issues and PRs. Things that involve typescript, such as typings and intellisense.
Projects
None yet
Development

No branches or pull requests

2 participants