Skip to content
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

[Bug] clone method does not have ExtensionOptions types #9319

Open
1 of 7 tasks
c6p opened this issue Dec 23, 2024 · 0 comments
Open
1 of 7 tasks

[Bug] clone method does not have ExtensionOptions types #9319

c6p opened this issue Dec 23, 2024 · 0 comments
Labels

Comments

@c6p
Copy link

c6p commented Dec 23, 2024

Description

When DataFilterExtension is enabled. .clone has type errors for DataFilter props such as filterEnabled, filterRange. Its type definition does not automatically extended to include DataFilterExtensionOptions.

Object literal may only specify known properties, and 'filterEnabled' does not exist in type 'Partial<Required<_GeoJsonLayerProps<any>> & Required<CompositeLayerProps> & Required<LayerProps>>'.

Flavors

  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CartoLayer
  • ArcGIS

Expected Behavior

clone type definition has DataFilterExtensionOptions if it is enabled.

Steps to Reproduce

Add DataFilterExtension and try to .clone the layer with filterEnabled, filterRange ... props.

Environment

  • Framework version: 9.0.24
  • Browser: *
  • OS: *

Logs

No response

@c6p c6p added the bug label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant