Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ol/feature): allow generics for
feature.getProperties<T>()
with this change it's possible to pass a generic type `T` when calling `feature.getProperties<T>()` and using with TypeScript. ``` // before: const stop = feature?.getProperties() as Stop const stop = feature?.getProperties<Stop>() console.log(typeof stop) // "Stop" ``` closes openlayers#14868
- Loading branch information