From 526d6bdb1c1c10fbd6cddf06a8e9a55b28b62bcb Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 12 Apr 2024 02:01:58 +0200 Subject: [PATCH] Improve typing --- src/Logic/FeatureSource/Sources/SnappingFeatureSource.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Logic/FeatureSource/Sources/SnappingFeatureSource.ts b/src/Logic/FeatureSource/Sources/SnappingFeatureSource.ts index 78cd3e3d7..5d2a87699 100644 --- a/src/Logic/FeatureSource/Sources/SnappingFeatureSource.ts +++ b/src/Logic/FeatureSource/Sources/SnappingFeatureSource.ts @@ -32,8 +32,8 @@ export interface SnappingOptions { reusePointWithin?: number } -export default class SnappingFeatureSource implements FeatureSource { - public readonly features: Store[]> +export default class SnappingFeatureSource implements FeatureSource> { + public readonly features: Store<[Feature]> /*Contains the id of the way it snapped to*/ public readonly snappedTo: Store private readonly _snappedTo: UIEventSource