Typescript interpreting DocumentType<Class> as any #701
Unanswered
SaadGillani
asked this question in
Q&A
Replies: 1 comment 2 replies
-
When opening a issue please use a issue template (unless it is absolutely not fitting), and not remove the template because this seems more like a question, i will move to discussions please provide more information, like versions of: nodejs, typescript, typegoose, mongoose, editor (like vscode) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a function with the following signature
public isAdmin(user: DocumentType<User>): boolean {}
but typescript is considering the argument user to be of type any
class user looks like following:
Beta Was this translation helpful? Give feedback.
All reactions