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
Hi, I have a question about index.d.ts. I tried to change the brightness for the image through applyFilter() method like as bellow:
index.d.ts
applyFilter()
imageEditor.applyFilter('brightness', {'brightness': parseInt(value, 10) / 255})
but ts compiler says TS2345: Argument of type '{ brightness: number; }' is not assignable to parameter of type '{ maskObjId: number; }'.
TS2345: Argument of type '{ brightness: number; }' is not assignable to parameter of type '{ maskObjId: number; }'.
I just commented out maskObjId: number; in index.d.ts, then it works fine. I know it's not good idea in the way.
maskObjId: number;
so, my question is Is there any way to change the brightness other than commenting out the object content?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
@yugo-ibuki Sorry for the late reply. The index.d file seems to be missing a type. I'll fix it.
index.d
Sorry, something went wrong.
This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!
This issue will be closed due to inactivity. Thanks for your contribution!
applyFilter
Successfully merging a pull request may close this issue.
Hi, I have a question about
index.d.ts
.I tried to change the brightness for the image through
applyFilter()
methodlike as bellow:
but ts compiler says
TS2345: Argument of type '{ brightness: number; }' is not assignable to parameter of type '{ maskObjId: number; }'.
I just commented out
maskObjId: number;
in index.d.ts, then it works fine.I know it's not good idea in the way.
so, my question is
Is there any way to change the brightness other than commenting out the object content?
Thanks in advance.
The text was updated successfully, but these errors were encountered: