@yandex/ymaps3-types
Version:
Types for ymaps3 maps library
16 lines (15 loc) • 420 B
TypeScript
import { Context } from "./Entities";
/**
* Map theme. Affects the colors of the map controls and background.
* ```typescript
* const map = new ymaps3.YMap({
* location: {center: [55.751574, 37.573856], zoom: 9},
* theme: 'dark'
* });
* ```
*/
export type YMapTheme = "light" | "dark";
export type YMapThemeContext = {
theme: YMapTheme;
};
export declare const ThemeContext: Context<YMapThemeContext>;