forked from justadudewhohacks/opencv4nodejs
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
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
TypeScript: NoImplicitReturns support #81
Labels
Fixed
fixed, wait for next release.
Comments
Patched as: cv.toMatTypeName = (type: number): MatTypes | undefined => {
for (const t of allTypes) {
if (cv[t] === type) return t;
}
return undefined;
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When
"noImplicitReturns": true,
in thetsconfig.json
, then at least the misc.ts yields a compiler error:Here, in case the type couldn't be found, we'd need to explicitly return
undefined
The text was updated successfully, but these errors were encountered: