@yandex/ymaps3-types
Version:
Types for ymaps3 maps library
21 lines (20 loc) • 589 B
TypeScript
import { Config } from "./config";
/**
* Request options
*/
export type FetchConfigOptions = {
/** Language */
lang: string;
/** Data provider */
dataProvider?: string;
/** Signal to abort request */
signal?: AbortSignal;
};
/**
* Requests config which is necessary for a map construction
*
* @param {FetchConfigOptions} options Request options
* @param {Config} config Current config
* @returns {Promise<Config>} Config for map construction
*/
export declare function fetchConfig(options: FetchConfigOptions, config?: Config | undefined): Promise<Config>;