@iminside/react-yandex-maps
Version:
Yandex.Maps API bindings for React
15 lines (14 loc) • 451 B
TypeScript
import ymaps from 'yandex-maps';
import { MutableRefObject } from 'react';
export type YMapsApi = typeof ymaps;
export interface AnyObject {
[key: string]: any;
}
export type AnyFunction = (...args: unknown[]) => unknown;
export interface WithInstanceRef {
/** ref prop but for Yandex.Maps object instances */
instanceRef?:
| ((value: ymaps.Map) => void)
| MutableRefObject<ymaps.Map | undefined>;
}
export type YMapsModules = string[];