Refactoring: add generics to some featureSources

This commit is contained in:
Pieter Vander Vennet 2023-05-05 01:25:12 +02:00
parent e038394331
commit dec4296204
3 changed files with 21 additions and 38 deletions

View file

@ -18,7 +18,7 @@ export interface Tiled {
/**
* A feature source which only contains features for the defined layer
*/
export interface FeatureSourceForLayer extends FeatureSource {
export interface FeatureSourceForLayer<T extends Feature = Feature> extends FeatureSource<T> {
readonly layer: FilteredLayer
}