[TS] No Model Type while creating object #1262
Answered
by
andrepaulo-bit
andrepaulo-bit
asked this question in
Q&A
-
I created schema, models in TypeScript, Whenever I do
I get the error mentioned before because Is there anything I can do to specify the model to use? |
Beta Was this translation helpful? Give feedback.
Answered by
andrepaulo-bit
Feb 2, 2022
Replies: 1 comment
-
welp, just noticed that I can do |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
andrepaulo-bit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
welp, just noticed that I can do
database.get<Post>(TableNames.POST)
and then everything else under that will have the right type.