You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you know that you must add the word static to the function to be a static function?
static async findByQ, otherwise it is an instance method
-> if it still dosnt work, please comment / reopen
hasezoey
added
invalid
This Issue is invalid (Bug reports, etc) | This is not an issue with Typegoose itself
question
Qustions about how to use stuff
labels
Oct 2, 2019
It works, but anyways, typing is wrong to suggest it, to make it seems like it is available on ReturnModelType<typeof Post, unknown>. Should only be shown on DocumentType<Post>.
It works, but anyways, typing is wrong to suggest it, to make it seems like it is available on ReturnModelType<typeof Post, unknown>. Should only be shown on DocumentType<Post>.
i know, but without many typescript intermediate types, it is not possible, (how typescript handels some types is still not clear to me)
Versions
Code Example
Adding decorator
@staticMethod
doesn't help.Do you know why it happens?
no
The text was updated successfully, but these errors were encountered: