Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,10 @@ function getClusterStyleDescriptor(
),
}
: undefined;

clusterStyleDescriptor.properties[styleName] = {
type: STYLE_TYPE.DYNAMIC,
// @ts-expect-error upgrade typescript v5.1.6
// @ts-expect-error
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the thorough analysis. Do you mind adding a summarized reason to both @ts-expect-error?

Suggested change
// @ts-expect-error
// @ts-expect-error <description why we ignore type error>

options: {
...options,
field,
Expand All @@ -161,7 +162,7 @@ function getClusterStyleDescriptor(
// copy static styles to cluster style
clusterStyleDescriptor.properties[styleName] = {
type: STYLE_TYPE.STATIC,
// @ts-expect-error upgrade typescript v5.1.6
// @ts-expect-error
options: { ...styleProperty.getOptions() },
};
}
Expand Down
Loading