Skip to content

Conversation

@k-yle
Copy link
Contributor

@k-yle k-yle commented Dec 14, 2025

exported all interfaces and types, so that consumers can access them.

There's a few other unimportant things in this PR, which could be removed. see comments below:

+ some unrelated tweaks

export class LocationConflation {
private _cache: Map<string, GeoJSONFeature>;
public _cache: Map<string, GeoJSONFeature>;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this property is used by iD and Rapid. Not sure if it's better to mark it as public, or keep it private and add a new helper method instead? (for manually inserting into the cache)

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yeah this surprised me too when I updated Rapid's LocationConflation recently
bhousel/Rapid@869a453

I forgot that we were inserting things directly into the cache. I agree that making it public is fine for now, and sometime soon add some helpers/tests/docs for cache management and to make it clearer that it's allowed to be used that way.

"version": "2.0.0",
"license": "ISC",
"repository": "github:rapideditor/location-conflation",
"repository": "https://github.com/rapideditor/location-conflation",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

despite the npm docs allowing this syntax, the npm website doesn't allow it.... Therefore, the link from the npm package to the git repo no longer works

Copy link
Contributor

Choose a reason for hiding this comment

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

Ugh, thanks for letting me know. I didnt realize npm did this.

@bhousel
Copy link
Contributor

bhousel commented Dec 14, 2025

Thanks! sorry I missed the exports - I'm pretty new to TypeScript.

@bhousel bhousel merged commit 2ad4702 into rapideditor:main Dec 14, 2025
1 check passed
@k-yle k-yle deleted the kh/typedefs branch December 14, 2025 21:55
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