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
The typescript type for region.setOptions requires "start" to be specified, even though there is specific code to handle "start" being undefined.
region.setOptions({ color: getColor(word) }); doesn't work ^
region.setOptions({ color: getColor(word) });
region.setOptions({ color: getColor(word), start: region.start }); works ^
region.setOptions({ color: getColor(word), start: region.start });
Property 'start' is missing in type '{ color: string; }' but required in type 'Omit<RegionParams, "minLength" | "maxLength">'.ts(2345)```
The text was updated successfully, but these errors were encountered:
Thanks! We should probably add it to the omitted prop list.
Sorry, something went wrong.
No branches or pull requests
Bug description
The typescript type for region.setOptions requires "start" to be specified, even though there is specific code to handle "start" being undefined.
Minimal code snippet
region.setOptions({ color: getColor(word) });
doesn't work ^
region.setOptions({ color: getColor(word), start: region.start });
works ^
Obtained result
The text was updated successfully, but these errors were encountered: