Answer the question
In order to leave comments, you need to log in
How to override a static method?
I use Mongoose in conjunction with typescript, I connect my class through Schema.loadClass. There was one problem, I'm trying to override the create method by creating a static method with the same name. In native js, everything works without problems, in ts it works too, but the compiler swears that the incoming and outgoing parameters do not match the parameters of the parent class. Can this be bypassed somehow?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question