Skip to content

Fix: add types to parameters #2479

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

Merged
merged 1 commit into from
Dec 30, 2024
Merged

Conversation

Eshmanski
Copy link
Contributor

@Eshmanski Eshmanski commented Dec 20, 2024

In the marker methods, I came into a type error.

One symbol can be specified when using the "setSymbol" method, but an array of symbols can be specified when creating a marker. There doesn't seem to be any justification for restricting the parameters that the function can take in because it utilizes a parent method that compares the type to an array.

This is also true for the "setInfoWindow" method, which verifies that the obtained argument is of the "InfoWindow" type.

@Eshmanski Eshmanski changed the title Fix: add types to arguments of marker methods Fix: add types to parameters Dec 20, 2024
@fuzhenn
Copy link
Member

fuzhenn commented Dec 30, 2024

Thanks!

@fuzhenn fuzhenn merged commit eb66c44 into maptalks:master Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants