@yandex/ymaps3-types
Version:
Types for ymaps3 maps library
18 lines (17 loc) • 497 B
TypeScript
import type { GenericGeometry } from './geojson';
import type { LngLat } from './lng-lat';
interface HotspotFeature<TCoordinates> {
type: 'Feature';
id: string;
geometry?: GenericGeometry<TCoordinates>;
properties: Record<string, unknown>;
}
interface HotspotObject {
type: 'hotspot';
feature: HotspotFeature<LngLat>;
}
interface RawHotspotObject {
type: 'raw-hotspot';
feature: HotspotFeature<LngLat>;
}
export { HotspotFeature, HotspotObject, RawHotspotObject };