We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
findByApplier (applier: ObjectId) { return this.find({ applier }); }
That is my static method of CircleApplicationModel And I call this static function at controller like
CircleApplicationModel
const applied = await CircleApplicationModel.findByApplier(user._id); ... const final = applied.find((v) => v.status === 'final')
But I got
src/controllers/CircleApplication.ts(65,22): error TS7006: Parameter 'v' implicitly has an 'any' type.
How can I explicitly set return value type of static function?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
That is my static method of
CircleApplicationModel
And I call this static function at controller like
But I got
How can I explicitly set return value type of static function?
The text was updated successfully, but these errors were encountered: