Files
spestexnika/types/ymaps.d.ts
nabijonovdavronbek619@gmail.com 63a930afae yandes types issue
2025-11-08 19:40:02 +05:00

40 lines
718 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// src/types/ymaps.d.ts
declare namespace ymaps {
interface MapOptions {
center: number[];
zoom: number;
controls?: string[];
}
class Map {
constructor(container: HTMLElement, options: MapOptions);
geoObjects: {
add(obj: any): void;
};
controls: any;
}
interface PlacemarkOptions {
iconColor?: string;
draggable?: boolean;
}
interface PlacemarkProperties {
balloonContent?: string;
}
class Placemark {
constructor(
coords: number[],
properties?: PlacemarkProperties,
options?: PlacemarkOptions
);
}
function ready(callback: () => void): void; // ✅ shu qator qoshildi
}
interface Window {
ymaps: typeof ymaps;
}